24 Aug
2006
24 Aug
'06
9:12 p.m.
MenTaLguY wrote:
Seems basically sound -- is there's a reason why RenderInterpreter exists, versus render being a method of RenderContext?
Just more logical separation. It discourages people from subclassing the RenderInterpreter, which should be output-independent. It also discourages them from mixing code between the two functions. And the interpreter being totally separate means it only needs to be debugged once.
However, if someone really wanted to, they could inherit from both classes and have it the other way too.
bob