Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 160 for Variable (0.81 sec)

  1. src/cmd/compile/internal/typecheck/export.go

    func importfunc(s *types.Sym, t *types.Type) {
    	fn := ir.NewFunc(src.NoXPos, src.NoXPos, s, t)
    	importsym(fn.Nname)
    }
    
    // importvar declares symbol s as an imported variable with type t.
    func importvar(s *types.Sym, t *types.Type) {
    	n := ir.NewNameAt(src.NoXPos, s, t)
    	n.Class = ir.PEXTERN
    	importsym(n)
    }
    
    func importsym(name *ir.Name) {
    	sym := name.Sym()
    	if sym.Def != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:28 UTC 2023
    - 838 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/assignments.go

    		return
    	}
    
    	// declare new variables
    	// spec: "The scope of a constant or variable identifier declared inside
    	// a function begins at the end of the ConstSpec or VarSpec (ShortVarDecl
    	// for short variable declarations) and ends at the end of the innermost
    	// containing block."
    	scopePos := endPos(rhs[len(rhs)-1])
    	for _, obj := range newVars {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/telemetry.txt

    stdout 'on'
    
    go env
    stdout 'GOTELEMETRY=''?on''?'
    stdout 'GOTELEMETRYDIR=''?'$userconfig'[\\/]go[\\/]telemetry''?'
    ! go env -w GOTELEMETRY=off
    stderr '^go: unknown go command variable GOTELEMETRY$'
    ! go env -w GOTELEMETRYDIR=foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 20:16:39 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api.go

    func (tv TypeAndValue) Addressable() bool {
    	return tv.mode == variable
    }
    
    // Assignable reports whether the corresponding expression
    // is assignable to (provided a value of the right type).
    func (tv TypeAndValue) Assignable() bool {
    	return tv.mode == variable || tv.mode == mapindex
    }
    
    // HasOk reports whether the corresponding expression may be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stmt.go

    		// If lhs exists, declare a corresponding variable in the case-local scope.
    		if lhs != nil {
    			// spec: "The TypeSwitchGuard may include a short variable declaration.
    			// When that form is used, the variable is declared at the beginning of
    			// the implicit block in each clause. In clauses with a case listing
    			// exactly one type, the variable has that type; otherwise, the variable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/decl.go

    					}
    				}
    				check.varDecl(obj, lhs, s.Type, init)
    				if len(values) == 1 {
    					// If we have a single lhs variable we are done either way.
    					// If we have a single rhs expression, it must be a multi-
    					// valued expression, in which case handling the first lhs
    					// variable will cause all lhs variables to have a type
    					// assigned, and we are done as well.
    					if debug {
    						for _, obj := range lhs0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  7. src/cmd/go/alldocs.go

    // decisions about whether to reuse a cached test result.
    //
    // # Environment variables
    //
    // The go command and the tools it invokes consult environment variables
    // for configuration. If an environment variable is unset or empty, the go
    // command uses a sensible default setting. To see the effective setting of
    // the variable <NAME>, run 'go env <NAME>'. To change the default setting,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  8. doc/next/7-ports.md

    <!-- go.dev/issue/60905, CL 559555 -->
    Go 1.23 introduces a new `GOARM64` environment variable, which specifies the minimum target version of the ARM64 architecture at compile time. Allowed values are `v8.{0-9}` and `v9.{0-5}`. This may be followed by an option specifying extensions implemented by target hardware. Valid options are `,lse` and `,crypto`.
    
    The `GOARM64` environment variable defaults to `v8.0`.
    
    ### RISC-V {#riscv}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:18:52 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/cgo/doc.go

    more specific CC_FOR_${GOOS}_${GOARCH} (for example, CC_FOR_linux_arm)
    environment variable when building the toolchain using make.bash,
    or you can set the CC environment variable any time you run the go tool.
    
    The CXX_FOR_TARGET, CXX_FOR_${GOOS}_${GOARCH}, and CXX
    environment variables work in a similar way for C++ code.
    
    # Go references to C
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/rangefunc/rewrite.go

    		expr1, expr2 = #p1, #p2
    		...
    	})
    
    (All the generated variables have a # at the start to signal that they
    are internal variables when looking at the generated code in a
    debugger. Because variables have all been resolved to the specific
    objects they represent, there is no danger of using plain "p1" and
    colliding with a Go variable named "p1"; the # is just nice to have,
    not for correctness.)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top