+ add flag to denote that an objectdef is invokable, thus can be used like a function variable

This commit is contained in:
Sven/Sarah Barth 2022-02-06 21:41:47 +01:00
parent 122c6c92cb
commit f0748ad59b
2 changed files with 4 additions and 2 deletions

View File

@ -566,7 +566,8 @@ type
oo_has_class_destructor, { the object/class has a class destructor }
oo_is_enum_class, { the class represents an enum (JVM) }
oo_has_new_destructor,{ the object/class declares a destructor (apart from potentially inherting one from the parent) }
oo_is_funcref { interface has a single Invoke method that can be directly called }
oo_is_funcref, { interface has a single Invoke method that can be directly called }
oo_is_invokable { interface that is invokable like a function }
);
tobjectoptions=set of tobjectoption;

View File

@ -3239,7 +3239,8 @@ const
(mask:oo_has_class_destructor; str:'HasClassDestructor'),
(mask:oo_is_enum_class; str:'JvmEnumClass'),
(mask:oo_has_new_destructor; str:'HasNewDestructor'),
(mask:oo_is_funcref; str:'IsFuncRef')
(mask:oo_is_funcref; str:'IsFuncRef'),
(mask:oo_is_invokable; str:'IsInvokable')
);
var
i : longint;