[Gambas-devel] GB_DECLARE_STATIC makes empty classes

Tobias Boege taboege at ...176...
Mon Sep 22 16:04:47 CEST 2014


Hi Benoit,

you told me recently to use GB_DECLARE_VIRTUAL instead of GB_DECLARE and
GB_VIRTUAL_CLASS. There is a problem with the GB_NOT_CREATABLE() pendant
of this: GB_DECLARE_STATIC sets the object size (2nd argument to GB_DECLARE)
to zero which may not be appropriate for all non-instantiable classes, e.g.
Stream in the interpreter whose class contains data but can not be created
at will (i.e. using New). This sort of thing. Is this worth doing something
about?

Adding a second argument would break, according to grep, 17 places, so
nothing which I couldn't fix along...

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the Devel mailing list