msg[0] or msg.field[0] ?

SK sk at metrokings.com
Sun Aug 29 16:14:11 PDT 2010


On Sun, Aug 29, 2010 at 10:47 AM, bearophile <bearophileHUGS at lycos.com>wrote:

> SK:
> > What is the explanation?
>
> The syntax shown in TDPL can't be supported yet, because the DMD compiler
> doesn't yet allow it. It will be added. In the meantime you have to use the
> .field[] syntax, or the "secret" ._0 ._1 ecc syntax. But keep in mind that
> this second syntax will be removed once DMD allows to perfom an "alias this"
> over a TypeTuple, so if you use it a lot you will have to change lot of your
> code.
>
> Bye,
> bearophile
>
>

Thank you, bearophile.  For those interested, see the "Problems with
receive" thread about this same bug in 2.048 concurrency.d.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20100829/cff5fa09/attachment-0001.html>


More information about the Digitalmars-d-learn mailing list