|
The book says that Each label b command in a VM function f should generate a globally unique symbol "f$b" where "f" is the function name and "b" is the label symbol within the VM function's code. That makes sense, but what's the convention when a label command occurs outside a function? For example, in ProgramFlow\FibonacciSeries\FibonacciSeries.vm there are no function commands but there are label commands.
One strategy: in such cases, just use the name of the file in which the label command occurs. Another strategy: fix a function name that isn't used anywhere else, e.g. filename.OUTSIDE_ANY_FUNCTIONS.
Maybe I'm worrying about nothing here. But the fact that this case isn't mentioned in the book or on the forum (so far as I could see) makes me suspect I've missed something.
|