Negative
Stewart Gordon
smjg_1998 at yahoo.com
Wed Mar 1 10:46:10 PST 2006
Sean Kelly wrote:
<snip>
> on_scope does practically eliminate the need for an 'auto' keyword,
> assuming auto classes would be allocated on the heap either way.
<snip>
How would you declare an auto class without the auto keyword?
Moreover, while
auto Qwert yuiop = new Qwert;
appears to be syntactic sugar for
Qwert yuiop = new Qwert;
on_scope_exit delete yuiop;
the former does still (I assume) have the advantage of stopping you from
inadvertently reassigning to yuiop.
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
mailing list