thomas at mail630.gsfc.nasa.gov
Thu Feb 5 09:34:12 UTC 2004
On Thursday 05 February 2004 12:27 pm, Jonathan Riddell wrote:
> On Thu, Feb 05, 2004 at 06:00:18PM +0100, Brian Thomas wrote:
> > CVS commit by thomas:
> > minor bug fix: add 'string' datatype to java/cpp code generators
> I think I left it out because String is an object in java rather than
> anything build in, but essentially it can be treated as a datatype.
> But shouldn't it be "String" with a capital?
I disagree. Remember that we want to create UML diagrams
that can be used to generate more than one type of language
code. This is why I like "string" which can be a 'universal' datatype,
shown in the UML, and the individual code generator can interpret this,
In the case of Java, 'string' should be converted to "String" in
generated code. In the case of CPP, it depends on the user configuration,
(see the configuration for the langauge, but it defaults to std::string as
the class type).
More information about the umbrello-devel