Here a specific example:
The following compiles and runs as expected
m1x,m1y := ec.scalarMult(16,28,33)
m2x,m2y := ec.scalarMult( 1,28,33)
rx,ry := ec.add (m1x,m1y, m2x, m2y)
However this stmt : rx,ry= ec.add(ec.scalarMult(16,28,33),
ec.scalarMult( 1,28,33)) gives the following compiler error ...
# command-line-arguments
.\ECurve.go:272:14: not enough arguments in call to ec.add
.\ECurve.go:272:28: multiple-value ec.scalarMult() in single-value context
On Monday, August 5, 2019 at 11:38:24 PM UTC-4, L Godioleskky wrote:
>
> For f1 defined as func f1(k1, k2, k3 int) (x1, x2 int) {..}
> and f2 defined as func f2(x,y int) (xR int) {..}
>
> Why does the compiler complain about the call stmt
> f2 ( f1 (1,2,3) ) ??
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/f1b715c9-c22f-41d4-8652-c3c49b0c1e7f%40googlegroups.com.