Re: type checking ?
- Posted by Matt Lewis <matthewwalkerlewis at gmail.c?m> Nov 25, 2007
- 626 views
Bernie Ryan wrote: > > Matt Lewis wrote: > > > > > Why do you need to pass a parameter if you want to force them to > > pass a specific constant? > > Matt: > > <code> <snipped> > -- These are ok > useit(strConstant1) > useit(strConstant2) > useit(strConstant3) > > -- THIS IS WRONG BECAUSE OF THE QUOTES, I DO NOT WANT TO PROCESS THIS. > > useit("strConstant1") > > </code> OK, once again, you've answered the what, but not the why. I'll play dentist now and ask some more focused questions. Where did file1, etc come from? Are these user files? Are they part of your library? Why is the distinction between a constant and a literal sequence important to useit? You say that you don't want to process a literal sequence. Please explain the reason behind this. Matt