Commit 936fa570 authored by Thomas Hunger's avatar Thomas Hunger

Emit and release temporary variables in global namespace

because the class-body code is exectuted at module-init time.
parent c5ce74b8
......@@ -1186,6 +1186,12 @@ class CClassScope(ClassScope):
adapt(base_entry.cname), base_entry.visibility)
entry.is_inherited = 1
def allocate_temp(self, type):
return Scope.allocate_temp(self.global_scope(), type)
def release_temp(self, cname):
return Scope.release_temp(self.global_scope(), cname)
class PropertyScope(Scope):
# Scope holding the __get__, __set__ and __del__ methods for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment