How can I add methods to a class at runtime in Smalltalk?

后端 未结 4 467
长情又很酷
长情又很酷 2020-12-29 14:44

I\'m building a Smalltalk API to an XML-based web service. The XML service is so regular that, rather than write the methods by hand, I figured I\'d just override #doe

4条回答
  •  长发绾君心
    2020-12-29 15:08

    Well, compile: takes a String. If you want something more typesafe, you could build a parsetree and use that.

提交回复
热议问题