civboot / fngi

a readable language that grows from the silicon
The Unlicense
59 stars 3 forks source link

Generic Types #17

Closed vitiral closed 1 year ago

vitiral commented 1 year ago

Uses TyMod

syn methods: they are passed (var: &Var, asNow). If var is null, then it's a reference access (just get TyDb_top). They can then compile correct behavior (i.e. a local Arr type can modify local values).

Generic methods: methods for the appropriate SIZES are generated as sub-types for the type, i.e. Bst._Bst[20]. The actual dictionary entries and typespecs are created correctly, i.e. Bst.Bst[MyStruct] (the key must be aliased and is not directly accessible)

vitiral commented 1 year ago

closing in favor of #23