Smalltalk/X WebserverDocumentation of class 'LazyMethod': |
||
|
Class: LazyMethodInheritance:Object | +--ExecutableFunction | +--CompiledCode | +--Method | +--LazyMethod
Description:Instances of LazyMethod are created when doing a lazy autoload. They do not contain any code (neither byte- nor machinecode), but keep their sourcecode only. When executed, these will trigger an error in the VM (noByteCode), which is caught here to create a real method from the receiver, amd re-execute the method. This allows faster loading of code, which will be later compiled when first executed; for classes with a large number of methods, of which only a small subset is actually used, this can also save lots of memory (beside making autoloading faster). Related information:Autoload Class protocol:Signal constants initializationInstance protocol:compiling
|
|
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 05:34:59 GMT
|