class object simple use

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

class object simple use

Post by l3whmg »

Hi friends.
A few days ago, I reread a document that talked about the Class(Y) and for this reason I decided to write this post.

I'm not a guru (these days MrDuck is trying to open my mind to the secrets of HbQt, but he spend a lot of energy with me :lol: ), I just want share my experience with everyone: with beginners to start and with others to give (I hope) an idea.

From Class(Y) documents:
"What is an Object?
One of the fundamental reasons that object orientation is enjoying such success as a programming paradigm is very simple: the real world is made up of objects....
Classes, Instances and Instance Variables...
A class can be thought of as a template, or specification, for creating an object...
To look at it another way, we can define an object as an instance of a class...
", etc. etc.

For a lot of time I use PUBLIC array and FUNCTION to store and retrieve informations to use inside projects, but for a long time, I had the desire to use a syntax like this "LOCAL VarName := PublicVarName:othervar:something".
Some times ago, I rewrite my library and I used object and class.
This (for me) it was a good idea, because I could not avoid some annoying problems during testing of the HMG4 library and I think will help me when I will convert programs.

That's all folk. I leave you to read my source code: it's a derived version of my job. Work fine with HMG3 and HMG4 (the latest example is the goal I wanted to reach). Enjoy with this idea.

Cheers
Attachments
basep000.zip
(2.42 KiB) Downloaded 549 times
Luigi from Italy
www.L3W.it
User avatar
danielmaximiliano
Posts: 2607
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: class object simple use

Post by danielmaximiliano »

Hola Luigi:
para abrir su mente le suguiero Smatlltalk o su derivado libre Squeak.
saludos
PD: Small Talk = Todo es un Objeto

Translate Google
apri la tua mente di proporre un pacchetto o un suo derivato Squeak Smatlltalk libero.
Saluti
PD: Small Talk = Tutto è un oggetto
DaNiElMaXiMiLiAnO
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: class object simple use

Post by l3whmg »

Ciao DanielMaximiliano,
muy interesante tu propuesta! Muchas gracias.

El problema es que mi mente empezó a rechazar el mundo virtual :lol:

Saludos
Luigi from Italy
www.L3W.it
Post Reply