Re: type checking ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete Lomax wrote:
> 
> Bernie Ryan wrote:
> > Derek Parnell wrote:
> > > A user of Bernie's application must supply a couple of include files.
> > > 
> > > global constant WhatEver = "some text"
> > 
> >    Thanks for explaining it.
> >    That is exactly what I mean.
> >    How can you be sure that a user enters the token WhatEver which
> >    represents a string constant and not the string "WhatEver"
> 
> Is the missing bit the way that constant is defined?

I'm still a bit baffled about all of this.  I suppose that Bernie has
a sorta legitimate reason for doing all this, but it really strikes me
as the kind of thing that is the wrong solution.  There's probably a
better way.

The main question that keeps popping up for me is:

Why do you need to pass a parameter if you want to force them to 
pass a specific constant?

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu