first try at OOP
i need for al graphics a real3d class
this i think is not compleetly corect
this wil be changed | extended
In FPC, as far as I know, object is not deprecated, so you can safely use it. If you want to use inheritance, virtual functions, then this is better than just a record. I
In mode objfpc and mode delphi - and to my deep regret, because I like it,
object must be assumed deprecated in favor of
classes and
advanced records.
Any advise that differs from that is bad advise.
In mode
TP (which is a legacy mode by itself) of course
object is the way to go.
Don't give newbee's advise about such things if you are not completely sure what you are writing. Newbee's should use
classes, not
objects.
Objects are more difficult to use correctly as well.
Although they are a good tool in the hands of an advanced Pascal specialist.
Fresh programmers in Object Pascal should for the time being NEVER EVER use objects.
If they are seasoned programmers and KNOW all the low level ins and outs they may want to use objects, because it is powerful in the right hands. (as long as it lasts, that is)
And You Know That. <very grumpy, Friday again
> Stop putting noobs on the wrong track.
New users should start with the current language, not with legacy support.
You can see from his efforts he is already mixed up with modern features (operators) and legacy (objects)
From an educational point of view hardly defendable to encourage him on that path.....
I repeat:
And You Know That. <very grumpy, Friday again
>