<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<pre>And if you use named slices?<br><br>//------------------------------<br><br>slice class mySlice{<br>public:<br>   static unsigned int counter;<br>};<br><br>slice unsigned int mySlice::counter = 0;<br><br><br>aspect Counter{<br>   advice "Device": slice mySlice;<br>};</pre>//--------------------------------------------------<br><br>Regards,<br><br>Francisco Afonso<br><br><br>> Date: Tue, 25 Mar 2008 10:36:50 +0100<br>> From: arnd-hendrik.mathias@nefkom.net<br>> To: aspectc-user@aspectc.org<br>> Subject: [aspectc-user] non-inline introduction<br>> <br>> Hi,<br>> I'm tryin' to introduce a new static member to a class including the  <br>> corresponding non-inline introduction. The code I'm using looks like  <br>> this:<br>> <br>> /** \code */<br>> <br>> class Device<br>> {<br>>     unsigned char devspeed;<br>>     unsigned char devclass;<br>>     unsigned char devsubclass;<br>>     unsigned char devprotocol;<br>> };<br>> <br>> aspect Counter<br>> {<br>>     advice "Device" : slice class<br>>     {<br>>        public : static unsigned int counter;<br>>     };<br>> };<br>> <br>> slice unsigned int Device::counter = 0;<br>> <br>> /** \endcode */<br>> <br>> Which looks pretty much like the example given in section 5 of the  <br>> ac-language-reference page 27. Nevertheless ag++ reports an "error:  <br>> invalid introduction" to me.<br>> I also tried to put the non-inline introduction into the aspect. Which  <br>> only makes things different but not better. Can anyone give me some  <br>> good advice (or at least some better slice than mine ;-)<br>> Best regards<br>> <br>> Arnd-Hendrik<br>> <br>> <br>> _______________________________________________<br>> aspectc-user mailing list<br>> aspectc-user@aspectc.org<br>> http://www.aspectc.org/mailman/listinfo/aspectc-user<br><br /><hr />How well do you know your celebrity gossip? <a href='http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A' target='_new'>Talk celebrity smackdowns here.</a></body>
</html>