Get the scope of class methods right

Class methods belong in a class scope, not the containing module.
So create a lexical scope that carries tasks and functions and
create a PClass to represent classes.
This commit is contained in:
Stephen Williams
2012-03-11 13:18:24 -07:00
parent b80afdf1f1
commit b0d61813b2
11 changed files with 197 additions and 23 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ list<Module::named_expr_t> Module::user_defparms;
/* n is a permallocated string. */
Module::Module(perm_string n)
: PScope(n)
: PScopeExtra(n)
{
library_flag = false;
is_cell = false;