1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 09:09:31 +00:00

Add object type, dot operator can return function references

This commit is contained in:
Étienne Fildadut 2022-06-09 17:07:58 +09:00
parent 69b9e17020
commit 47f95fc04a
18 changed files with 599 additions and 49 deletions

View file

@ -0,0 +1,15 @@
% class
:a:b = "foo"
:c = "bar"
$ new(o::&class, x)
~ o.c := x
@o
:o = class
:p = class!new("hoho")
{o}, {p}
{o.c} == {class.c}
{p.c} != {class.c}