[squeak-dev] "Reflection and dynamic class creation and method compilation is the easiest thing evahhhh!!!!" Said no programmer ever.
gettimothy
gettimothy at zoho.com
Sat Sep 11 18:45:35 UTC 2021
Found it!
Somebody showed this to me years ago:
methodTemplate := 'page ^', $', '{1}' ,$'.
DocletSwiki subclasses do:[:each |
wikipage:= (each new) page.
methodSource := methodTemplate format:{wikipage}.
each class compile:(methodSource asString).
Transcript show: each name; cr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210911/3b4b5522/attachment.html>
More information about the Squeak-dev
mailing list
|