structure member names problem
------=_NextPart_000_000E_01BFADFD.3E2C8760
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
another big weakness of Euphoria:
=20
in file.ew i have global sequence gs
this gs has members (gs[1]=3Dtext, gs[2]=3Dcurline,...)
=20
problem: if i want to access one member of this structure i must =
remember under which number it is.
i can avoid this by decalaring global constants =
gs_text=3D1,gs_curline=3D2,... , but this really sux. You have to write =
this constants each time and they have long names, so instead of using =
this, like in C:
gs[text] --THIS WAY IT SHOULD BE!!!
you must use =20
gs[gs_text] --THIS WAY YOU MUST DO IT NOW
anybody knows how to access members of structure(sequence) like in C, or =
how to even make a structure?
------=_NextPart_000_000E_01BFADFD.3E2C8760
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>another big weakness of =
Euphoria:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>in file.ew i have global sequence =
gs</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this gs has members (gs[1]=3Dtext,=20
gs[2]=3Dcurline,...)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>problem: if i want to access one member =
of this=20
structure i must remember under which number it is.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i can avoid this by decalaring global =
constants=20
gs_text=3D1,gs_curline=3D2,... , but this really sux. You have to write =
this=20
constants each time and they have long names, so instead of using this, =
like in=20
C:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>gs[text] --THIS WAY IT SHOULD =
BE!!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>you must use </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>gs[gs_text] --THIS WAY YOU MUST DO IT=20
NOW</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>anybody knows how to access members of=20
structure(sequence) like in C, or how to even make a=20
------=_NextPart_000_000E_01BFADFD.3E2C8760--
|
Not Categorized, Please Help
|
|