Re: Sequences?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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]

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu