Re: Sequences?
- Posted by cense <cense at MAIL.RU> Dec 03, 2000
- 517 views
On Sun, 03 Dec 2000, Euman wrote: >> Hello all, >>=20 >> In Euphoria everyone knows how sequences are formed >>=20 >> sequence seq >> seq =3D {data1, data2, data3} >>=20 >> Now in C suppose an "array" is missing size value or, >> has an (incomplete type) >> i.e: int seq[] >>=20 >> /* if you create a struct named sequence >> struct sequence; >>=20 >> /* and define the struct >> typedef struct sequence seq; >>=20 >> /* later call to struct to fill sequence >> struct sequence { >> double data1, data2, data3 >> }; >>=20 >> /* now seq should be >> seq =3D {data1, data2, data3} -- same as Euphoria >>=20 >> AM I RIGHT? >>=20 >> I have absolutely none what-so-ever Knowledge >> of C/C++ just reading up on the language >> to help put into perspective the Eu 2 C translator... >>=20 >> euman at bellsouth.net Euphoria sequences are ordered and indexable, C/C++ structs are not, they= are just an bubble around the data (and/or routines) --=20 evil, corruption and bad taste ^[cense]