I would say that you should simply include the "unique" variable in the
"protected" members of the parent class. Something like

defstar {
        name {DevBase}
        domain {SDF}
        protected {
            int thisUnique;
            static int unique;
        }
        code {
            int SDFDevBase::unique;
        }
        constructor {
            unique = 0;
        }
        begin {
            unique++;
            thisUnique = unique;
        }
       ......
       ......

Hope it works.


Mario Russo
--
Universita' degli Studi di Cassino
Dipartimento di Ingegneria Industriale
via Di Biasio, 43, 03043 Cassino (FR) - Italy
tel: +39 0776 299636  fax: +39 0776310812 / 0776299653
e-m: [EMAIL PROTECTED]     e-m: [EMAIL PROTECTED]



----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to