Tutorial: PureBasic and the OOP
The tutorial has just been updated.
This update impact the whole part called " Second implementation ".
It brings a more homogeneous implementation by distinguishing the initialization of the methods of that of the attributes.
So, the definition of the methods is completely contained by the class of the object, while the initialization of the attributes stays only at the constructor level of the object.
That ensues an inheritance realized in a more systematic way.
I also clarified the presence of the constrictor possible parameters.
Thank to Leo for his input on the subject.
Finally, the tutorial grows with an Appendix, grouping the different considerations revolving around the programming object-oriented implementation.
At present time, it can be found:
- The optimization the use of Get() and Set() methods (already present previously, but moved here),
- The use of linked lists in objet implementation.
Thus, do not hesitate to announce me your tips & tricks…
PS: I intend to give a chm’d version on the site from this new version
This update impact the whole part called " Second implementation ".
It brings a more homogeneous implementation by distinguishing the initialization of the methods of that of the attributes.
So, the definition of the methods is completely contained by the class of the object, while the initialization of the attributes stays only at the constructor level of the object.
That ensues an inheritance realized in a more systematic way.
I also clarified the presence of the constrictor possible parameters.
Thank to Leo for his input on the subject.
Finally, the tutorial grows with an Appendix, grouping the different considerations revolving around the programming object-oriented implementation.
At present time, it can be found:
- The optimization the use of Get() and Set() methods (already present previously, but moved here),
- The use of linked lists in objet implementation.
Thus, do not hesitate to announce me your tips & tricks…
PS: I intend to give a chm’d version on the site from this new version
-
- Addict
- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
Great! Really professional work!!
Ever consider to write a book?
I'll buy it!!
(I've generated a PDF-file from the web pages, but need the author's "blessing" to go public with it I'll guess.)
Ever consider to write a book?

(I've generated a PDF-file from the web pages, but need the author's "blessing" to go public with it I'll guess.)

(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
-
- Enthusiast
- Posts: 767
- Joined: Sat Jan 24, 2004 6:56 pm
-
- Addict
- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
Ok!Dräc wrote:@techjunkie: Thanks! No problem for a PDF file version of the web pages and its free diffusion if author references are mentioned.[/img]

Here is the link to the PDF-version,
http://www.techjunkie.org/purebasic/Pur ... amming.pdf

(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
-
- Addict
- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
Tutorial: PureBasic and the OOP
Hi folk!
A new page has just been added to the OOP tutorial.
It brings the wrap which missed for an easy handle in object creation.
This page presents the implementation of object concepts which I use at present with PureBasic (PureBasic Class).
After long moments of practice and tune, I think it is mature enough.
Although PureBasic remains a procedural language, this new stage supplies a real set of commands.
Good reading to the brave
Hi folk!
A new page has just been added to the OOP tutorial.
It brings the wrap which missed for an easy handle in object creation.
This page presents the implementation of object concepts which I use at present with PureBasic (PureBasic Class).
After long moments of practice and tune, I think it is mature enough.
Although PureBasic remains a procedural language, this new stage supplies a real set of commands.
Good reading to the brave

Last edited by Dräc on Thu Sep 27, 2007 11:13 pm, edited 2 times in total.
Dräc
EDIT: Working now =)
GREAT Work!
Thalius
GREAT Work!

Thalius
Last edited by Thalius on Fri Sep 21, 2007 3:35 pm, edited 1 time in total.
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
"
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
