Lua documentation tweaks and make nspace example more concise.

This commit is contained in:
William S Fulton 2014-03-04 07:54:37 +00:00
commit c99417ab13
4 changed files with 21 additions and 31 deletions

View file

@ -7,20 +7,15 @@ int module_variable = 9;
namespace MyWorld {
class World {
public:
World():
world_max_count(9) {}
World() : world_max_count(9) {}
int create_world() { return 17; }
const int world_max_count; // = 9
};
namespace Nested {
class Dweller {
public:
Dweller():
food_count(11) {}
enum Gender { MALE = 0, FEMALE = 1 };
static int populate_cave() { return 19; }
int create_cave() { return 13; }
int food_count; // = 11
static int count() { return 19; }
};
}
}