[q-lang-users] LPs, CDs and other records
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2005-06-24 10:27:06
|
Hi folks, Do we have some form of record / structure data-type and associated manipulation functions? I've trawled qdoc.pdf, hunting for `record' and `struct', but can't see anything obvious. I would like to be able to make class definitions and have accessor functions automatically generated for all the fields therein. E.g., how do you say "a Point is a triple (X,Y,Z), Velocity and Acceleration are Points (ish), and a Star object has Location, Velocity and Acceleration and mass and colour", and go on to write some obvious astrophysical simulation? May it be possible to do this with a macro, perhaps, rather like Scheme? Or have I missed something in the fine manual altogether? Ta, ~Tim -- <http://spodzone.org.uk/> |