jbv.silences at Club-Internet.fr
Mon Mar 8 12:20:14 CST 2004
IIRC in C structures are composed of elements of
various natures (variables, arrays, strings...) and
AFAIK such a concept doesn't exist in Transcript.
As for your example, why don't you simply use
a 3 dimension array ?
In which way using a struct. would be cleaner than
an array ?
> Is there a way to create structures in Transcript?
> I want to represent an entity that has several attributes
> (actually, I want to represent an array of such entities).
> So, is there something similar to the "struct" that exists
> in programming languages like c++ and scheme?
> For example, one of my students wants to create an array
> of bullets for his video game. For each bullet we need to
> know the following:
> - its current availability (already in use, or available)
> - its movement in the x direction if in use
> - its movement in the y direction if in use
> We could use three parallel arrays, but it seems cleaner to
> use a struct. Is it possible?
More information about the use-livecode