Automatic Data Entry

Peter De Berdt peter.de.berdt at pandora.be
Fri Oct 29 15:39:42 CDT 2004


>> I wouldn't put it in a module, but in
>> a class (modules are like scripts, they're global, but it's not a good
>> practice to use them if you can use a class for it).
> ••••
> I know this is probably off topic but I'm interested to know why this 
> is?
>
Because one of the basic principles of OO-programming is encapsulation, 
a module doesn't encapsulate anything. It's from OO point of view bad 
practice. That's why other OO languages don't have them. You should ask 
this same question on the REALbasic NUG itself and see the comments 
you'll get, probably better than mine and more in depth :-) (I don't 
have the time right now to write pages on good OO programming ;-))

Best regards

Peter De Berdt


More information about the Valentina mailing list