Re: (rant) Three kinds of languages

new topic     » goto parent     » topic index » view thread      » older message » newer message
_tom said...

supporters tell you they are easy (do you enjoy surprises?)

Heh. No surprises.... I just now found (and fixed) this one in Phix:

for i=1 to length(s) do 
    ?s[i] 
    exit 
end for 

gave index out of bounds when length(s) was zero [because the zero iterations jump was messed up].
Unfortunately I couldn't quite fully fix it - you now get an "invalid/unsupported construct" when the compiler cannot cope,
ie: when an unconditional jump occurs immediately before an end for (use a simple if rather than for construct, innit!).
Lest anyone start to panic, it is a pretty rare and rather silly thing to do, that I have obviously never seen or tried to do before.

I suppose, at least, that such major and embarrassing surprises are getting down towards about one a year now. smile

Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu