types.Bool.weakref
Method on every
boolweakref(): any
Returns the bool itself.
Return value
this, unchanged - not a weakref value.
Notes
A bool is never reference counted, so there is nothing for sq_weakref to point a real weakref at; see types.Integer.weakref for the full mechanism.
Example
let wr = true.weakref()
println("wr =", wr)
println("type(wr) =", type(wr)) // still "bool"Output:
wr = true
type(wr) = boolSee also
weakref | Returns the integer itself. |
weakref | Returns the float itself. |
clone | Returns the bool itself. |
| bool | class index |