pass-by-ref semantics for structs (was Deque impl.)

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Jan 31 07:39:46 PST 2013


On 1/31/13 10:27 AM, monarch_dodra wrote:
> On Thursday, 31 January 2013 at 15:12:52 UTC, Andrei Alexandrescu wrote:
>>
>> As far as I can tell classes have the same problem.
>>
>>
>> Andrei
>
> Regarding classes, would there be any chance of being to create a class
> instance that isn't a child of "object"?

Using classes entails buying into an entire object model with its own 
pluses and minuses. Adding classes that don't inherit Object would wreck 
havoc all over the place.

> I'm not entirely sure what the implications are, but it seems that is
> the major "no-sell" argument against using classes.
>
> I know *I* would be using them a whole lot more if this was the case.

What would be the problem?


Andrei


More information about the Digitalmars-d mailing list