Re: [pypy-dev] Builtin types

Jan. 28, 2003
2:10 p.m.
In general I agree but why not an ABC instead of a dispatch function? Something like: class evaluator: """Interface for all evaluators""" def loadData(self): pass def compile(self): pass def evaluate(self): pass And then have subclasses add more specific load_ methods: i386 = I386evaluator() i386.loadInstruction('push ebp') i386.loadInstruction('mov ebp, esp') ... i386.compile() i386.evaluate() Where exec and eval would perform "if not compiled then compile; eval;" on any evaluator.
8086
Age (days ago)
8086
Last active (days ago)
0 comments
1 participants
participants (1)
-
logistix