Using pure to create immutable

Jesse Phillips jessekphillips+D at gmail.com
Thu Sep 22 16:20:42 PDT 2011


Dmitry Olshansky Wrote:


> Maybe:
> -------------------------<<<<<<<<<<
>   List!T makeFromArray(T)(immutable T[] array) pure {
> -- 
> Dmitry Olshansky

Thank you this lets it compile. I think I had that somewhere, but forgot about it. As Steve mentions, it probably should also work for const arguments too.


More information about the Digitalmars-d-learn mailing list