The arrow ( -> ) operator gives you a simple way of indirectly accessing properties stored on
a symbol’s property list. The getq function implements the arrow operator. Both the left and
right sides of the -> operator must be symbol。
if( shapeType == "rect"
then
println( "Shape is a rectangle" )
++rectCount
println(rectCount)
else
println( "Shape is not a rectangle" )
++miscCount
println(miscCount)
)
执行时候加上这两句,就能看到变量的变化了。