From a newbie
- Posted by =?ISO-8859-2?Q?Tom_=A9upka?= <TomSupka at BIGFOOT.COM> Sep 20, 1998
- 602 views
Hi, I am a very newbie to Euphoria - I tried it since I need free data = structure in my project. Euphoria succeeded! I've written working Code = Generator Genarator within a day. My questions: 1. Conditional expressions are fully evaluated. Is it an Euphoria bug?=20 I never use this language "feature". I know that it is optional in = Borland Pascal/Delphi and in Java but I prefer (and don't know anybody = who don't) shortcut evaluation. It's faster and more usable. For example = if you run this in Euphoria: if integer(x) and x<0 then -- ... end if where x can be of any type (object), you probably end with RTE. Shortcut = evaluation can be substituted, in Euphoria, only with nested if - it's = inefficient and annoying. 2. Is there any possibility to change value of non-global variable (e.g. = an argument) inside function/procedure? Euphoria language extension suggestions: 1. If answer for Q2 is "No" make it possible - in/out arguments. in - argument is an input (default) out - argument is an output in out - both as input and output 2. Structured gotos (as in Java) and exceptions implementation. 3. "dot" operator. For example: const fX =3D 1, fY =3D 2 sequence p p.fX =3D 0 -- means p[fX] =3D 0 p.fY =3D 0 -- means p[fY] =3D 0 -- It makes code more readable. 4. All preprocessor's (pp) extensions. Tom