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

> On Mon, 08 Sep 2014 17:25:07 +0200
> Timon Gehr via Digitalmars-d <digitalmars-d@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

Attachment: signature.asc
Description: PGP signature

Reply via email to