Re: Phix 0.8.1 uploaded

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

What's the difference between "" and {}. file_exists throws a fit at {}, but is ok with "".

Not much, except that you can pass a string direct to a c_proc/func, whereas you cannot do that with a dword-sequence.
There is a toString() function, or some variant of it, in builtins\ (at least): pchdir.e, pgetpath.e, pcfunc.e, pfileioN.e, and pFloatN.e
I suppose I should really factor them out, into a new common/auto_include function to_string(), and then also start using that in pfile.e [etc]

I suppose I should also say that (deliberately) trapping non-strings may sometimes help to locate logic errors much quicker.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu