Re: chaining immutable methods vs functions
On Friday, 17 January 2014 at 01:49:24 UTC, Ola Fosheim Grøstad wrote: pure immutable fbool and(immutable fbool b){return b.data < Nevermind, I figured this out. immutable(fbool), not immutable fbool...
chaining immutable methods vs functions
Why do I get the error message: Error: immutable method fbool.fbool.and is not callable using a mutable object when chaining methods? It works fine using regular function calls? struct fbool { ubyte data; pure immutable fbool and(immutable fbool b){return b.data < data ? b : this;} pur