structs and opAssign -- why not?

Stewart Gordon smjg_1998 at yahoo.com
Sun Nov 19 16:18:14 PST 2006


Bill Baxter wrote:
<snip>
> Basically "it bugs me, and there's no compelling use case".
> I think RAII is a compelling use case.  Expression templates are another 
> thing that has been talked about.
> 
> At the very least I think D needs to have some sort of reasonable 
> solution for smart pointers.  Fleshing out structs seems one reasonable 
> way to go about it.
<snip>

To bypass the restriction that scope object references cannot be 
changed?  If we're going to add something to the language for this, why 
not just remove the restriction?

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