1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00
anselme/test/tests/implicit call of references.ans

61 lines
442 B
Text

Function with argument:
$ f(x)
{&f}
Function without argument:
$ a
lol
$ b
hihi
a: {a}
&a: {&a}
:ref = &a
&ref: {&ref}
&&&ref: {&&&ref}
ref: {ref}
ref.b: {ref.b}
ref.b!: {ref.b!}
ref.b(): {ref.b()}
&ref.b: {&ref.b}
&ref.b!: {&ref.b!}
&ref.b(): {&ref.b()}
&ref!: {&ref!}
Objects:
% A
$ b
KK
@1
&A: {&A}
:ref A = &A
ref A: {ref A}
&ref A: {&ref A}
A.b: {A.b}
&A.b: {&A.b}
\(&A).b: {(&A).b}
&(&A).b: {&(&A).b}