Re: C Struct Support

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

also i like coconut's idea of assigning to a structure

--or better  
atom a=alloc(numbers)  
-- and for transfert of data between sequence and structure  
a={32,65535,-128000,1386836683, 3.1416, 3.1e100}  


but with the structure name as a prefix

mem_struct person 
   cs:c_str name 
   cs:int32 age 
   cs:c_str addr1 
   cs:c_str addr2 
end mem_struct 
 
cs:struct P = cs:new(person()) 
P           = person:{ "my name", 44, "my address1", "my address2" } 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu