Please rid me of this goto
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 24 07:03:31 PDT 2016
On Thursday, 23 June 2016 at 23:33:46 UTC, Timon Gehr wrote:
> I don't want to argue this at all. x^^0 is an empty product no
> matter what set I choose x and 0 from. 0^^0 = 1 is the only
> reasonable convention, and this is absolutely painfully obvious
> from where I stand. What context are you using 'pow' in that
> would suggest otherwise?
You can build a non-analytical flavor of pow on top of the
analytical flavor:
int pow1(int x, int y)
{
if(x==0 && y==0)return 1;
return pow(x,y);
}
More information about the Digitalmars-d
mailing list