Pascal-Assignment (simple)

Help Contents Examples Pascal-Assignment (simple)
onchange (simple) Polyhedra-fractals (3d fractal)

Pascal-Assignment (simple)

This simple example shows how to define and use a Pascal-like assignment operator. It uses call by name, therefore see also the example byValue-byName (simple) !

to "x ':=' :y
	make :x :y
end

local "a "boza

"boza ':='
[	[:x]
	local "v1 "v2

	"v1 ':=' "b
	"v2 ':=' :x*:x
]

make "b boza 33

print :b.x
print :b.v1
print :b.v2

Reference:

onchange (simple) Polyhedra-fractals (3d fractal)