mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 02:29:34 +02:00
+ add flag to denote that an objectdef is invokable, thus can be used like a function variable
This commit is contained in:
parent
122c6c92cb
commit
f0748ad59b
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user