Discussion:
CppGenerator
Jonatan Antoni
2007-04-04 12:00:15 UTC
Permalink
Hello,

there is something nasty within the CppGenerator.

If you use attributes with initial values, these initializer is only coded for one (more or less random) constructor.
Other constructors, if there are more than only one, does not have these initializer, thus the atttributes stay
uninitialized. Thats no good choice I think.

Greetings,
Jonatan
Anders Larsen
2007-04-04 16:03:03 UTC
Permalink
Hi,
Post by Jonatan Antoni
there is something nasty within the CppGenerator.
If you use attributes with initial values, these initializer is only
coded for one (more or less random) constructor.
Other constructors, if there are more than only one, does not have
these initializer, thus the atttributes stay
uninitialized. Thats no good choice I think.
that certainly sounds more like a bug than like a feature.
I'll investigate.

Cheers
Anders
Anders Larsen
2007-04-08 23:20:19 UTC
Permalink
Hi again,
Post by Anders Larsen
Post by Jonatan Antoni
If you use attributes with initial values, these initializer is only
coded for one (more or less random) constructor.
Other constructors, if there are more than only one, does not have
these initializer, thus the atttributes stay
uninitialized.
that certainly sounds more like a bug than like a feature.
I'll investigate.
It was indeed a bug - fixed in SVN rev. 815

Cheers
Anders

Loading...