Re: Structures

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

>  C_STRUCT My_Structure
>  {
>    C_INT value1
>    C_INT value2
>    some_other_struct structure2
>  }


If I need a structure in Euphoria, here is what I do:

constant VALUE1 = 1, VALUE2 = 2,
         MY_STRUCTURE = 2

procedure something()
    sequence this
    this = repeat({}, MY_STRUCTURE)

    this[VALUE1] = 5
    this[VALUE2] = 9
    -- Code.....
end procedure

It works for me....

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]

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

Search



Quick Links

User menu

Not signed in.

Misc Menu