|
|
> Why that? What's wrong with
>
> #local MyBlob = blob {
> #local i = 0;
> #while (i < 10)
> sphere { VRand(Rnd)*10, rand(Rnd) ... }
> #local i = i + 1;
> #end
> }
Sure, nothing wrong that way, #local MyBlob
sets a pointer to a blob object. Maybe declares
should expect some identifier, object, or value
as the following token, and raise a warning or
error if the next token is a control structure.
Here's a good example that will actually crash
because of not checking for this.
#while (c=0)
#local c = #end c+1;
This parses fine, and crashes because of it.
The #while attempts to evaluate the pointer c,
but the pointer c doesn't point to anything yet.
Post a reply to this message
|
|