Page 1 of 1

Being able to have a list within a UDT

Posted: Sun Feb 22, 2004 12:33 am
by two_bits
Hi, I think it would be good if we could have a list inside of a user defined type, so something like the following would be valid.

Code: Select all

type order
    list items.item()
endtype

newlist orders.order ()
The syntax is probabally wrong but im sure you get the general idea.

Cheers
James

Posted: Sun Feb 22, 2004 4:57 pm
by Psychophanta
Perhaps should be:

Code: Select all

NewList items.item()
Structure order
    items.item()
EndStructure

NewList orders.order ()
This should be very good. I missed that sometimes.
But i guess this is very difficult to implement, because the .order type would have a variable size, and it would have not sequential data in reserved memory for the .order defined variables... :(