- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MakeInt64 (0.33 sec)
-
src/go/constant/example_test.go
} // Output: // // Frame // Z // a // bacon // defer // go } func ExampleSign() { zero := constant.MakeInt64(0) one := constant.MakeInt64(1) negOne := constant.MakeInt64(-1) mkComplex := func(a, b constant.Value) constant.Value { b = constant.MakeImag(b) return constant.BinaryOp(a, token.ADD, b) } vs := []constant.Value{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
name string kind BasicKind val constant.Value }{ {"true", UntypedBool, constant.MakeBool(true)}, {"false", UntypedBool, constant.MakeBool(false)}, {"iota", UntypedInt, constant.MakeInt64(0)}, } func defPredeclaredConsts() { for _, c := range predeclaredConsts { def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val)) } } func defPredeclaredNil() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/universe.go
name string kind BasicKind val constant.Value }{ {"true", UntypedBool, constant.MakeBool(true)}, {"false", UntypedBool, constant.MakeBool(false)}, {"iota", UntypedInt, constant.MakeInt64(0)}, } func defPredeclaredConsts() { for _, c := range predeclaredConsts { def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val)) } } func defPredeclaredNil() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.3K bytes - Viewed (0)