[dmd-beta] dmd 2.063 beta 5
Jonathan M Davis
jmdavisProg at gmx.com
Thu May 23 03:56:49 PDT 2013
On Thursday, May 23, 2013 19:54:06 Kenji Hara wrote:
> 2013/5/23 Jacob Carlborg <doob at me.com>
> > * tango/core/tools/StackTrace.d(186): Error: class
> > tango.core.tools.StackTrace.BasicTraceInfo interface function 'string
> > toString() const' is not implemented
> >
> >
> > https://github.com/SiegeLord/Tango-D2/blob/d2port/tango/core/tools/StackTr
> > ace.d#L186
> This is expected change. The type of Throwable.TraceInfo.toString is
> string() const, but BasicTraseInfo.toString is not const.
> By fixing issue 8366, now const attribute is never inherited automatically.
>
> Fixing way: Add const to BasicTraceInfo.toString
>
> Reduced case:
> class BasicTraceInfo: Throwable.TraceInfo
> {
> override immutable(char)[] toString() /*const*/
> {
> immutable(char)[] ret;
> return ret;
> }
> }
>
> * tango/io/selector/SelectSelector.d(156): Error: function
We really need to work on sorting out any remaining language changes like this
so that we stop breaking code like this.
- Jonathan M Davis
More information about the dmd-beta
mailing list