How is this code supposed to work?
rikki cattermole
rikki at cattermole.co.nz
Fri Jan 25 09:36:24 UTC 2019
On 25/01/2019 10:34 PM, AndreasDavour wrote:
> How am I supposed to use that??
>
> auto point3 = getResponse!Point!int("What's the point? ");
auto point3 = getResponse!(Point!int)("What's the point? ");
> auto point4 = getResponse!Point!int("What's the point? ");
> writeln("Distance: ", point3.distanceTo(point4));
>
> generates the error:
>
> struct_templates.d(48): Error: multiple ! arguments are not allowed
> struct_templates.d(49): Error: multiple ! arguments are not allowed
>
> Which makes me wonder about the syntax.
More information about the Digitalmars-d-learn
mailing list