Feeds:
Posts
Comments

Archive for October, 2007

No Block Scoping

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 [...]

Read Full Post »

Creating a Package

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 [...]

Read Full Post »