Re: Very First Language to Learn: Phix or Euphoria?

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

That's an interesting development to come out of this debate. A cross Phix and Euphoria program!

ifdef is like C's #if and that's the problem. It is a very uninspired way of doing things. It would be much better if we could just query directly whether something exists or not:

In C, it is common to find a program with dozens of lines of checking whether it is one version of a compiler or another when the program just wants to know whether memcpy comes with it or not. It is much better if we could ask the C compiler whether memcpy was in a header or not at program time with some builtin routine and have that routine return a boolean.

It seems we have repeated the ugliness of C in Euphoria thanks to the mechanism of ifdef getting into the front end instead of something better.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu