Structures and references.
- Posted by Michael Nelson <mike-nelson-ODAAT at WORLDNET.ATT.NET> Dec 10, 1999
- 460 views
------=_NextPart_000_000D_01BF435C.1BD59E60 boundary="----=_NextPart_001_000E_01BF435C.1BD59E60" ------=_NextPart_001_000E_01BF435C.1BD59E60 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Attached is an include file I hacked together to provide structures and = refernces for Euphoria. The stuctures are fixed length sequences with named elements and type = checking for each element. Structures can be accessed directly by indexing if desired. References a type checked and not directly accessable but only can be = read and written to by the routines provided. Note that=20 reference x,y x=3Dnew_reference(INTEGER_TYPE,1) y=3Dx will not create an independent copy of x. Any change in x will cause a = change in y or vice versa. --Mike Nelson ------=_NextPart_001_000E_01BF435C.1BD59E60 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> <HTML> <HEAD> <META content=3Dtext/html;charset=3Diso-8859-1 = http-equiv=3DContent-Type> <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT color=3D#000000 size=3D2>Attached is an include file I hacked = together to=20 provide structures and refernces for Euphoria.</FONT></DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV> <DIV><FONT color=3D#000000 size=3D2>The stuctures are fixed length = sequences with=20 named elements and type checking for each element.</FONT></DIV> <DIV><FONT color=3D#000000 size=3D2>Structures can be accessed directly = by indexing=20 if desired.</FONT></DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV> <DIV><FONT color=3D#000000 size=3D2>References a type checked and not = directly=20 accessable but only can be read and written to by the routines = provided. =20 Note that </FONT></DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV> <DIV><FONT size=3D2>reference x,y</FONT></DIV> <DIV><FONT size=3D2>x=3Dnew_reference(INTEGER_TYPE,1)</FONT></DIV> <DIV><FONT size=3D2>y=3Dx</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT color=3D#000000 size=3D2>will not create an independent copy = of x. =20 Any change in x will cause a change in y or vice versa.</FONT></DIV> <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV> <DIV><FONT size=3D2>--Mike Nelson</FONT></DIV> ------=_NextPart_001_000E_01BF435C.1BD59E60-- ------=_NextPart_000_000D_01BF435C.1BD59E60 name="StrucRef.zip"