Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for variadic_func (0.53 sec)

  1. src/cmd/compile/internal/types2/call.go

    	sigParams := sig.params // adjusted for variadic functions (may be nil for empty parameter lists!)
    	adjusted := false       // indicates if sigParams is different from sig.params
    	if sig.variadic {
    		if ddd {
    			// variadic_func(a, b, c...)
    			if len(call.ArgList) == 1 && nargs > 1 {
    				// f()... is not permitted if f() is multi-valued
    				//check.errorf(call.Ellipsis, "cannot use ... with %d-valued %s", nargs, call.ArgList[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  2. src/go/types/call.go

    	if sig.variadic {
    		if ddd {
    			// variadic_func(a, b, c...)
    			if len(call.Args) == 1 && nargs > 1 {
    				// f()... is not permitted if f() is multi-valued
    				check.errorf(inNode(call, call.Ellipsis), InvalidDotDotDot, "cannot use ... with %d-valued %s", nargs, call.Args[0])
    				return
    			}
    		} else {
    			// variadic_func(a, b, c)
    			if nargs >= npars-1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. src/html/template/exec_test.go

    	// Function call builtin.
    	{".BinaryFunc", "{{call .BinaryFunc `1` `2`}}", "[1=2]", tVal, true},
    	{".VariadicFunc0", "{{call .VariadicFunc}}", "<>", tVal, true},
    	{".VariadicFunc2", "{{call .VariadicFunc `he` `llo`}}", "<he+llo>", tVal, true},
    	{".VariadicFuncInt", "{{call .VariadicFuncInt 33 `he` `llo`}}", "33=<he+llo>", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  4. src/text/template/exec_test.go

    	// Function call builtin.
    	{".BinaryFunc", "{{call .BinaryFunc `1` `2`}}", "[1=2]", tVal, true},
    	{".VariadicFunc0", "{{call .VariadicFunc}}", "<>", tVal, true},
    	{".VariadicFunc2", "{{call .VariadicFunc `he` `llo`}}", "<he+llo>", tVal, true},
    	{".VariadicFuncInt", "{{call .VariadicFuncInt 33 `he` `llo`}}", "33=<he+llo>", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
Back to top