1. bad euphoria
------=_NextPart_000_001D_01BFAAF4.D353F460
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
i have found the biggest weakness of Euphoria
you cant have large database of functions you can reuse later cause =
every function you call must be before current function!
sure you can call it with call_func(routine_id("name",{params})), but =
that doesnt look good and its complicated. I would like to know if this =
is also slower than normal function calling ??? cause if it isnt than we =
could write and use preprocessor (code would look normal and it would =
save you a lot of work)
and Euphoria could be more flexible in general, but it would loose some =
of its speed then, probably
------=_NextPart_000_001D_01BFAAF4.D353F460
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>i have found the biggest weakness of=20
Euphoria</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>you cant have large database of =
functions you can=20
reuse later cause every function you call must be before current=20
function!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>sure you can call it with=20
call_func(routine_id("name",{params})), but that doesnt look good and =
its=20
complicated. I would like to know if this is also slower than normal =
function=20
calling ??? cause if it isnt than we could write and use =
preprocessor=20
(code would look normal and it would save you a lot of =
work)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>and Euphoria could be more =
flexible in=20
general, but it would loose some of its speed then,=20
------=_NextPart_000_001D_01BFAAF4.D353F460--
2. Re: bad euphoria
- Posted by Agent Spectre <Email at SPECTRESOFTWARE.CO.UK>
Apr 20, 2000
-
Last edited Apr 21, 2000
------=_NextPart_000_0021_01BFAB15.96F89680
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
Skoda Wrote:
>you cant have large database of functions you can reuse later cause =
every function you call must be before current function!
Yes you can, use an include file, then you can call the functions from =
any euphoria program too :)
------=_NextPart_000_0021_01BFAB15.96F89680
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 =
Transitional//EN">
<META content=3D"MSHTML 5.00.2722.2800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Skoda Wrote:</FONT></DIV>
<DIV><FONT size=3D2>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>>you cant have large database of =
functions you=20
can reuse later cause every function you call must be before current=20
function!</FONT></DIV>
<DIV> </DIV>
<DIV>Yes you can, use an include file, then you can call the functions =
from any=20
euphoria program too :)</DIV></FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px">
------=_NextPart_000_0021_01BFAB15.96F89680--
3. Re: bad euphoria
On Thu, 20 Apr 2000, tone.skoda wrote:
> >%_i have found the biggest weakness of Euphoria
>
> you cant have large database of functions you can reuse later cause
> every function you call must be before current function!
?
Has there been some change so "include" no longer works?
Regards,
Irv Mullins
4. Re: bad euphoria
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM>
Apr 20, 2000
-
Last edited Apr 21, 2000
Hello all,
>Skoda Wrote:
>
> >you cant have large database of functions you can reuse later cause every
>function you call must be before current function!
>
>Yes you can, use an include file, then you can call the functions from any
>euphoria program too :)
I think we all know what Skoda means here. Say we have 3 routines.
procedure routA ()
routC ()
end procedure
procedure routB ()
routA ()
end procedure
procedure routC ()
routB ()
end procedure
This forms an impossible triangle it won't work
without routine_id. However, I have yet to stumble
upon a situation where this could not be resolved
by restructuring ones code another way. In those
few hypothetical situations where there is no
alternative, we DO have routine_id (). I think that
the rarity of these situations makes it unnecessary
to add forward references to the language. Preprocessing
is a reasonable solution. In the event that forward
references are added to Euphoria I would like the option
to turn them off for my own code.
later,
Lewis Townsend
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
5. Re: bad euphoria
i have for each .dll(user32,gdi32,kernel32) and for dialogs,... separate .ew
file and situation when i must call function with routine_id is frequent.
try having functions categorized in files, which is reasonable, that way i
have been programming also in C, and you will eventually get to this
problem.
Lewis Townsend guessed what i mean.