hi,
i'm just trying to get a bit into the object-oriented programming with
flavours.
after some first steps i have a lot of questions, perhaps there is some
indulgent person out there who will anser....
here they are:
how can i delete instances of objects ?
how can i keep track of all my objects ?
(e.g. like in the database-concept, where i can find all the elements of a
certain kind with: present([element ?searched_element ==]))
while prototyping, i'm changing my objects now and then. although i load
the new code after changing (lcf), the old one is still present (e.g.
deleting an object slot). how can i load the new code completely (and
forget the old stuff) ?
a last - perhaps silly question:
i want to define an object 'line' which is composed of two 'point'
objects.
when i create an instance of a new line, i want to make sure, that the
points do exist. i thought of defining a method 'before initialize', which
checks for the existance of the points, but i didn't find (up to now), how
i can get hold of the points.
perhaps there is also a more elegant way, which does this check
automatically. e.g. the flavour knows, that it can only have points as
components, thus the instances assigned to those slots have to be
points.....
thanks for answers ....
|