Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Variadic (0.11 sec)

  1. src/cmd/api/main_test.go

    		}
    	}
    	buf.WriteByte(']')
    }
    
    func (w *Walker) writeParams(buf *bytes.Buffer, t *types.Tuple, variadic bool) {
    	buf.WriteByte('(')
    	for i, n := 0, t.Len(); i < n; i++ {
    		if i > 0 {
    			buf.WriteString(", ")
    		}
    		typ := t.At(i).Type()
    		if variadic && i+1 == n {
    			buf.WriteString("...")
    			typ = typ.(*types.Slice).Elem()
    		}
    		w.writeType(buf, typ)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    </p>
    
    <p>
    The final incoming parameter in a function signature may have
    a type prefixed with <code>...</code>.
    A function with such a parameter is called <i>variadic</i> and
    may be invoked with zero or more arguments for that parameter.
    </p>
    
    <pre>
    func()
    func(x int) int
    func(a, _ int, z float32) bool
    func(a, b int, z float32) (bool)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  3. api/go1.5.txt

    pkg go/types, method (*Signature) Results() *Tuple
    pkg go/types, method (*Signature) String() string
    pkg go/types, method (*Signature) Underlying() Type
    pkg go/types, method (*Signature) Variadic() bool
    pkg go/types, method (*Slice) Elem() Type
    pkg go/types, method (*Slice) String() string
    pkg go/types, method (*Slice) Underlying() Type
    pkg go/types, method (*StdSizes) Alignof(Type) int64
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    C compilers are aware of this calling convention and adjust
    the call accordingly, but Go cannot. In Go, you must pass
    the pointer to the first element explicitly: C.f(&C.x[0]).
    
    Calling variadic C functions is not supported. It is possible to
    circumvent this by using a C function wrapper. For example:
    
    	package main
    
    	// #include <stdio.h>
    	// #include <stdlib.h>
    	//
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 01 22:52:54 UTC 2024
    - 44K bytes
    - Viewed (0)
  5. doc/go_spec.html

    </p>
    
    <p>
    The final incoming parameter in a function signature may have
    a type prefixed with <code>...</code>.
    A function with such a parameter is called <i>variadic</i> and
    may be invoked with zero or more arguments for that parameter.
    </p>
    
    <pre>
    func()
    func(x int) int
    func(a, _ int, z float32) bool
    func(a, b int, z float32) (bool)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
  6. RELEASE.md

            (incl. anti-aliasing).
        *   Renamed `tf.image` functions to remove duplicate "image" where it is
            redundant.
        *   Variadic reduce is supported on CPU Variadic reduce is supported on CPU
        *   Remove unused `StringViewVariantWrapper`.
        *   Delete unused `Fingerprint64Map` op registration
        *   Add broadcasting support to `tf.matmul`.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Oct 22 14:33:53 UTC 2024
    - 735.3K bytes
    - Viewed (0)
Back to top