<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Olav,<br>
<blockquote cite="mid42774730.9080105@informatik.uni-erlangen.de"
type="cite">Template aspects are a nice idea. However, aspects are
instantiated implicitly by default and therefore the programmer doesn't
have a chance to pass the template parameter.
<br>
</blockquote>
Right. On the other hand, aspect templates could be defined in
AspectC++ to have no implicit instantiation. They would have to be
instantiated explicitely. For instance, something like:<br>
<blockquote><tt>// file1<br>
// No effect unless instantiated explicitelly:<br>
template <class T><br>
aspect MakeSingletonOf {<br>
...<br>
};<br>
<br>
// file2<br>
<br>
class MyClass {<br>
...<br>
<br>
};<br>
<br>
template aspect MakeSingletonOf<MyClass>; // using C++ explicit
template instantiation syntax.<br>
</tt><br>
</blockquote>
In a sense, this is achievable with abstract aspects. However, it
would be more powerful, since T might be used in a consistent way in
several different contexts within the aspect template.<br>
<br>
Manuel<br>
</body>
</html>