Re: type checking ?
- Posted by Matt Lewis <matthewwalkerlewis at gmail.c??> Nov 24, 2007
- 645 views
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