Preprocessor
- Posted by Ad Rienks <106075.266 at COMPUSERVE.COM> Jan 22, 1997
- 732 views
Hello All, I have a question about David Cuny's preprocessor. I'm experimenting with it for some time now and recently I dl'ed version .51. I like the way it works, especially to make programs with many sequences, loops and for..then..elsif.. etc constructions more readable. My question, however, concerns the "case" statement. The documentation says that you can use an <expression> in the select clause, so I tried: sequence s s = {} select case numeric length(s) do case 0 -- empty case else -- not empty end select This does not work. The expression length(s) is translated to a single ')'. I could not find a reference to this kind of 'bug', or isn't it a bug? Is it just impossible what im trying? Ad Rienks. PS I find it pityfull to see people quarrelling on this server. If someone comes with arguments, try to answer to the arguments, and not to what you think the other is implying. Sometimes it is difficult, I know by my own experience, but since you're not face to face, first think and than answer. Or maybe you shouldn't answer at all, if you think the arguments are silly.