MutableOf etc and QualifierOf

2015-10-21 Thread Shriramana Sharma via Digitalmars-d
The templates `MutableOf` etc in std.traits – they don't seem to be of any public use since `const(T)` is more direct and meaningful than `ConstOf!T`. Except for `MutableOf` they are all currently public and even the `package`- level `MutableOf` is publicly documented. All this seems pointless.

Re: MutableOf etc and QualifierOf

2015-10-21 Thread John Colvin via Digitalmars-d
On Wednesday, 21 October 2015 at 12:22:25 UTC, Shriramana Sharma wrote: The templates `MutableOf` etc in std.traits – they don't seem to be of any public use since `const(T)` is more direct and meaningful than `ConstOf!T`. Except for `MutableOf` they are all currently public and even the `pac

Re: MutableOf etc and QualifierOf

2015-10-21 Thread Shriramana Sharma via Digitalmars-d
John Colvin wrote: > It might be better to ask in http://forum.dlang.org/group/learn > first for these sort of questions. I didn't do that only because it concerns implemental details of Phobos which didn't seem to be learner material. I have just now separately posted an actual "I don't know w

Re: MutableOf etc and QualifierOf

2015-10-21 Thread John Colvin via Digitalmars-d
On Wednesday, 21 October 2015 at 14:27:45 UTC, Shriramana Sharma wrote: John Colvin wrote: It might be better to ask in http://forum.dlang.org/group/learn first for these sort of questions. I didn't do that only because it concerns implemental details of Phobos which didn't seem to be learn

Re: MutableOf etc and QualifierOf

2015-10-21 Thread Shriramana Sharma via Digitalmars-d
John Colvin wrote: > for better or worse, it's in std.traits so they > don't have to. Heh, I thought the library was supposed to provide what the basic language itself doesn't provide... -- Shriramana Sharma, Penguin #395953