Which patches/mods exists for current versions of the DMD parser?

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 8 10:00:06 PDT 2014


Am Mon, 8 Sep 2014 18:34:10 +0300
schrieb ketmar via Digitalmars-d <digitalmars-d at puremagic.com>:

> On Mon, 08 Sep 2014 17:25:07 +0200
> Timon Gehr via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> 
> > int square(int x)=>x*x;
> noted.

To clarify: There is x^^2, but the implementation uses
pow(x,2) and presumably yields a "real" result instead of an
integer. So in that case the correct solution would be to
special case int^^int.

-- 
Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140908/214260de/attachment.sig>


More information about the Digitalmars-d mailing list