Am 28.08.2016 um 20:37 schrieb Jussi Lahtinen:

> It's very likely that I have missed something and I have some crucial
> design problem. So all suggestions are welcome!
> Thanks!

Hm, if I declare properties in a parent class I do this only for the
correct work of methods, that depend on the existence of these
properties in childs.

If a child does not overwrite the property, it has to be fulfilled by
the parent, so the property in the parent has to bedeclared with

property_read() ...

property_write() ...

so that methods later work in a correct way. That is a logical
consequence of the inheritance of properties.

For the mess of writing such a thingy by hand all the time I wrote for
me a little tool, the getter-setter-creator, it could be much better as
it is (id does only string, integer, float and date), but it works for
me. I attach it.


Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur

Attachment: gshelper-0.0.6.tar.gz
Description: application/gzip

------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to