Re: Phix plus BzScript

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

I did create a user-defined function named free(). That worked when running Phix interpreted. But... it failed when attempting to compile. FWIW. Maybe it should have failed if interpreted too? Not my call.

Yeah, that's a known thing. The manual (Core Language/Declarations) has this to say on the matter:

Note however that none of the following (and then some) are technically reserved words,  
although the editor colours them differently, to give you a hint that it could be rather 
foolish to use them as identifiers:  
    ...           free           ... 
I think there's a bit of code somewhere that only allows some such things to be declared within the /builtins directory, if I find it again I'll think about adding some more of the dangerous ones to it.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu