[dmd-internals] ref const(T) doesn't accept struct temporaries?

Steve Schveighoffer schveiguy at yahoo.com
Mon Dec 13 06:04:34 PST 2010


Ran into the same problem long ago when moving dcollections to D2.

Andrei opened a bug on this: http://d.puremagic.com/issues/show_bug.cgi?id=3659

Here's my rant on the NG :)

http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=109239


-Steve



----- Original Message ----
> From: Sean Kelly <sean at invisibleduck.org>
> To: Discuss the internals of DMD <dmd-internals at puremagic.com>
> Sent: Fri, December 10, 2010 5:15:55 PM
> Subject: Re: [dmd-internals] ref const(T) doesn't accept struct temporaries?
> 
> Um... problem:
> 
>     Error: function core.time.Duration.opEquals  type signature should be const 
>bool(ref const(Duration)) not const bool(Duration  other)
> 
> I'm being forced to define a method that doesn't accept  temporaries?  Not a 
>huge problem since I don't use opEquals very often,  but...


      


More information about the dmd-internals mailing list