I post a things that could help me making a better code:
1. I'm using a lot of vectors in the code and everything seems ok to me, but I miss bigger size vectors.
In particular I'd need a 15 size vector. I wish it was possible to have a more generalistic syntax for declaring vector type or bigger vector sizes.
2. Global variables are working properly?
I thought I could use global variables to store setup parameters of the library but it doesn't work.
Global variables have a behaviour I didn't expect.
Code: Select all
GV=1 // Global variable
startshape AAA[b 1 sat 1]
shape AAA {
GV=2 // this (to me) should give a violation error (context free impurity)
CIRCLE[h (120*GV)]
BBB[x GV]
}
shape BBB {
// GV value -now, to me- shoud be 2 but it is 1
CIRCLE[h (120*GV)]
CCC[x GV]
}
shape CCC {
CIRCLE[h (120*GV)]
}
Code: Select all
startshape AA
shape AA
{ AAA()[] }
path AAA()
{ }
Merry Christmas everybody