[Uml-devel] kdesdk/umbrello/umbrello

Mathias Meyer mailings at beatsteaks.de
Mon Feb 24 13:49:07 UTC 2003


On Monday 24 February 2003 21:56 Andrew Sutton wrote:

> actually, they aren't REALLY called parameterized classes. you can
> theoretically paramaterize almost anything UML (like operations,
> states, use cases). i'm not sure how much sense that makes, but its
> possible. anyways, the result of defining template parameters for a
> class makes it a parameterized class - they don't really exist by
> themselves.
>
That point is clear I think.

> on a related note - if anybody's going to do any work for this - here's
> how templates in UML are supposed to work. something (lets call it
> UMLClass in this case) has a list of template parameters. if that list
> is NOT empty, then the UMLClass becomes a "template". i.e., it cannot
> be used like a regular class (can't be used in inheritance or as types
> of other objects like attributes or parameters). you have to define a
> special object called a "binding" (or UMLBinding) that contains values
> for the template parameters of the template class. this new object (the
> UMLBinding) can then be used like a regular class. does that makes
> sense?
>
I'm not sure, if I get what you mean, but I think so. I'll have to think 
about that again. Does UML explicitly forbid inheritance of template 
classes, since you can do that in C++ afaik? Obviously not for normal 
classes, but for new templates. That's what Stroustrup does in his book. 
Please correct me, if I'm wrong here. Maybe I'm a bit confused by mixing 
UML and C++ features ;)

Best regards,
Mathias
-- 
"only wimps use backup: _real_ men just upload their important stuff
on ftp, and let the rest of the world mirror it ;)" - linus torvalds




More information about the umbrello-devel mailing list