Re: C Struct Support
- Posted by raseunew Dec 30, 2010
- 1806 views
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" }