std.array.array and immutable elements

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 7 07:33:04 PST 2014


On Fri, 07 Nov 2014 15:18:24 +0000
anonymous via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> On Friday, 7 November 2014 at 14:57:56 UTC, ketmar via
> Digitalmars-d-learn wrote:
> > `map` cannot return range with immutable elements, 'cause they 
> > are
> > obviously generated by program, and therefore aren't 
> > "immutable".
> 
> That's not true. Runtime generated values can be immutable just
> fine. And it's std.array.array that's choking here, not map.
ah, sorry, maybe i'm too tired now and talking nonsense. it can have a
perfect sense for me, but still be nonsense. but don't blame me, it's
gdc bug which makes gdc segfaults on my code, it eats all my brains.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141107/1cbcead7/attachment.sig>


More information about the Digitalmars-d-learn mailing list