negative vector literals?
Hi,
I've been experiencing some confusion over how vector literals should be represented in Breve/Push.
I've attached a working/not working simulation which demonstrates the problem but here is the crux of the example problem:
-This works-
self.inter.pushVector(vector(-1,1,1))
self.code.parse('''( SVEL )''')
-This doesn't work-
self.code.parse('''( -1:-1:-1 SVEL )''')
I can push a vector with negative values on to the stack and if I call printStacks, I might get something like this. But if I try to parse the first value from below the simulation freezes.
(-3.0000000000000000:-1.0000000000000000:-1.0000000000000000 1.0000000000000000:1.0000000000000000:1.0000000000000000 )
Would -1:1:-1 be a valid literal representation or have I got the wrong end of the stick?
Peter.
| Attachment | Size |
|---|---|
| prob.py_.txt | 1.24 KB |
- Login to post comments
