mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Merge examples
This commit is contained in:
@@ -35,14 +35,13 @@
|
|||||||
// a: any
|
// a: any
|
||||||
// a.data = &x
|
// a.data = &x
|
||||||
// a.id = typeid_of(type_of(x))
|
// a.id = typeid_of(type_of(x))
|
||||||
//
|
// // With literals
|
||||||
// Example:
|
// v: any = 123
|
||||||
// a: any = 123
|
|
||||||
// // equivalent to
|
// // equivalent to
|
||||||
// a: any
|
// v: any
|
||||||
// tmp: int = 123
|
// _tmp: int = 123
|
||||||
// a.data = &tmp
|
// v.data = &_tmp
|
||||||
// a.id = typeid_of(type_of(tmp))
|
// v.id = typeid_of(type_of(_tmp))
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// `any` is a topologically-dual to a `union` in terms of its usage. Both support assignments of differing types
|
// `any` is a topologically-dual to a `union` in terms of its usage. Both support assignments of differing types
|
||||||
|
|||||||
Reference in New Issue
Block a user