Leo Sutic wrote:


-----Original Message-----
From: Berin Loritsch [mailto:[EMAIL PROTECTED] Sent: den 1 augusti 2003 17:12
To: Avalon Developers List
Subject: Re: [RT] New beginning & meta



Using Outlook, eh? ;P


The .NET equivalent would be:

[ThreadSafe]
[Dependency( MyDependency.class, "name", Optional.True )]

So we would drop the "new" in the example above.

I *think* that's only because C#, like C++ allows you to create objects on the stack. What I wanted was to allow some recursive expressions without making them inconsistent with the Java language:

   BAD: @attribute Dependency ( new Color ("red") )
BETTER: @attribute new Dependency ( new Color ("red") )

Ok. Wasn't adamant about it, just pointing out the difference.


--

"They that give up essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety."
                - Benjamin Franklin


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to