Ah, this is a fun lesson: unlike C, C++, or any “real” programming language, variables defined inside a block (ie, surrounded by curly braces) are not defined in their own scope. Or, another way of saying it is a function only has a single scope, and any variable defined in any block in that [...]
Archive for October, 2007
No Block Scoping
Posted in 1 on October 8, 2007 | Leave a Comment »
Creating a Package
Posted in 1 on October 8, 2007 | Leave a Comment »
It seems like it should be extremely easy to group classes into packages, but I’ve had a hell of a time trying to derive any meaning from the documentation. After much trial and error, I’ve figured out the following minimal example to show how to create and compile a basic package. This example [...]