DMD 0.175 release

Stewart Gordon smjg_1998 at yahoo.com
Sun Nov 26 04:02:14 PST 2006


Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Walter Bright schrieb am 2006-11-25:
>> Stack class variables
> 
> Should the following allocate the class on the stack or not?
> #
> # scope Object o;
> # o = new Object;
> #

Not, because it shouldn't be allowed.

http://www.digitalmars.com/d/attribute.html#scope
"Assignment to a scope, other than initialization, is not allowed."

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- 
PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.



More information about the Digitalmars-d-announce mailing list