Preprocessor

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

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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu