ObjInstance / ObjClass optimization no more list of accessible fields!

This commit is contained in:
sergeych committed 2025-06-10 23:51:01 +04:00
1 parent 88b355c40d
commit d482401b15
14 files changed
+81 -84

No files matched your search

+2 -19
View File
@@ -39,22 +39,5 @@ We can just put the code into the module code:
## class initialization
class foo {
private static var instanceCounter = 0
val instanceId = instanceCounter
fun close() {
instanceCounter--
}
// instance initializatino could be as this:
if( instanceId > 100 )
throw Exception("Too many instances")
static {
// static, one-per-class initializer could be posted here
instanceCounter = 1
}
}
already done using `ObjInstance` class and instance-bound context with local
context stored in ObjInstance and class constructor statement in ObjClass.