Foreach/opApply with @nogc

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 24 11:54:59 PDT 2014


On Sun, 24 Aug 2014 11:45:14 -0700
Ali Çehreli via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> Yeah, the only reason why the original code does not work is the
> write() expression in the foreach body.
hm. really. i forgot what is delegate body for opApply. sure, here we
can't use @nogc delegate. my fault.
-------------- 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/20140824/27f8fde3/attachment.sig>


More information about the Digitalmars-d-learn mailing list