We also have the Eden Framework that implements a model of BootSector for all native languages. Subclasses of BootSector implements boot contents for execution environments. |
Example definition from s8/startboot.lua |
smalltalk.mapClassName (self, className, category, fn, superclass) |
Example definition from s8/startboot.lua |
addClass (self, className, superclass, iVarNames, category) |
smalltalk:addClass("Object",nil,smalltalk:newArray({}),"Kernel") smalltalk:addClass("Smalltalk",smalltalk.Object,smalltalk:newArray({}),"Kernel") smalltalk:addClass("Behavior",smalltalk.Object,smalltalk:newArray({}),"Kernel") smalltalk:addClass("Class",smalltalk.Behavior,smalltalk:newArray({}),"Kernel") ... smalltalk.EventManager["$comment"]= "\r\n\tEvent system, properties and change/update/release mechanism.\r\n\tWe hook $properties and $handlers internal properties to manage properties and events at Object level.\r\n\tEventManager instances implement events handler as pure instance variable.\r\n" smalltalk.EventManager["$klass"]["$iVarNames"]=smalltalk:newArray({"eventsTriggered"}) |
Example definition from s8/startboot.lua |
smalltalk.bind (self, klass, stSelector, jsSelector, jsFunction, category, stSource, nativeSource) |
smalltalk:bind(smalltalk.Object["$klass"],"eventsTriggered",0 ,(...lua encoded function...) ,"events","eventsTriggered\r\n\t\" Return ... \"\r\n\r\n\t^self...","(function(self)\r\n...end)") |