Frederick Gotham wrote:

> osmium posted:

>

> > That's an implicit multiply, computers aren't that intuitive; make it

> > explicit.

> >

> > int area = Pi*(radius*radius);

>

>

> They can be if we program them that way.

>

> float float:perator()(float const i) { return *this * i; }
Thus if Pi names an object with this member function, it's possible to

write:

result = Pi(factor);

Unfortunately, this abuses the meaning of the function calling

parentheses, making them look like ordinary grouping parentheses, which

is surprising when they are removed, as

result = Pi factor;

doesn't work. So this is actually silly, rather than intuitive.