void main(inout string[] args) { import std.stdio; immutable(Object) o = new immutable Object(); //Compile error: template instance //std.format.formatGeneric!( // LockingTextWriter, immutable(Object), // char) //error instantiating writeln(o); }
How to turn an inout(Object) into a string
Meta via Digitalmars-d-learn Sat, 25 Apr 2015 20:10:31 -0700
The following code spits out pages of error messages, and it's
driving me insane. I know that Object.toString only has a mutable
variant, so how am I supposed to use writeln, toString, etc. with
an inout, const, or immutable object?
- How to turn an inout(Object) into... Meta via Digitalmars-d-learn
- Re: How to turn an inout(Obj... tcak via Digitalmars-d-learn
- Re: How to turn an inout... Meta via Digitalmars-d-learn
- Re: How to turn an i... Jonathan M Davis via Digitalmars-d-learn
- Re: How to turn an i... Meta via Digitalmars-d-learn
- Re: How to turn ... Jonathan M Davis via Digitalmars-d-learn