Sven/Sarah Barth
|
ddc2259e5e
* protect against comparisons of nested types of generics and specializations
|
1 year ago |
Sven/Sarah Barth
|
47c21fd1bc
* fix #40593: don't check for a static method when assigning a methodpointer to a function reference
|
1 year ago |
J. Gareth "Curious Kit" Moreton
|
f00a932cc6
* New is_cyclic function to detect if def references itself - fixes #40010
|
2 years ago |
Jonas Maebe
|
a6c7ed5e61
vector support: use vector result types
|
2 years ago |
Sven/Sarah Barth
|
2372a06926
* fix #39740: consider a conversion of a procedure or procedure variable to a function reference as a bit more expensive than otherwise
|
3 years ago |
Sven/Sarah Barth
|
492754ecca
* the check for nested procvars is now done during the conversion in capturer_add_procvar_or_proc so loosen the check in proc_to_funcref_equal_internal
|
3 years ago |
Sven/Sarah Barth
|
4361e36ce0
* make proc_to_funcref_conv publicly available
|
3 years ago |
Sven/Sarah Barth
|
5a680f0148
* fix #39745: the conversion from ordinals to pointer types in mode Delphi is not allowed for a void type (happens when using a typecast to convert a method without parameters to a function reference)
|
3 years ago |
Pierre Muller
|
bb39ec1610
Avoid invalid typecast to tabstractvarsym
|
3 years ago |
Sven/Sarah Barth
|
7974f39522
* implement assignment of procedure and method variables and routines (global, instance and nested) to function references
|
3 years ago |
Sven/Sarah Barth
|
76df7144ba
* implement necessary conversion functionality for anonymous procdefs to function reference interfaces including capturing of variables
|
3 years ago |
Sven/Sarah Barth
|
9b9ae2db1a
* two function references are equal to each other as long as their signatures match
|
3 years ago |
Sven/Sarah Barth
|
6fe9a15094
+ add function to check whether a procdef can be converted to a function reference
|
3 years ago |
Sven/Sarah Barth
|
47d7520b32
* consider invokables as related when they're equal
|
3 years ago |
Sven/Sarah Barth
|
145b37425d
+ add function funcref_equal to check whether two function references are considered equal enough to be assignable
|
3 years ago |
Sven/Sarah Barth
|
2be8f01efe
* implement assignment of anonymous functions to procedure or method variables if they either capture nothing or (in case of method variables) at most the Self variable
|
4 years ago |
Sven/Sarah Barth
|
17514ed5c0
* allow to ignore Self parameters; for this the parameter skipping needs to be repeated to correctly catch all cases
|
4 years ago |
Sven/Sarah Barth
|
8e2478e632
* check whether an anonymous function can be assigned to a global, method or nested function variable
|
4 years ago |
florian
|
6556d18bed
* better fix for #39634 which avoids breaking existing code
|
3 years ago |
Sven/Sarah Barth
|
094a353d87
+ add ability to strictly compare defs with generic constraints (this is needed for declarations, while for normal code we're rather relaxed)
|
3 years ago |
florian
|
aec18c2426
* weight currency->float conversions the same regardless if
|
4 years ago |
florian
|
1266afc0d0
* in equal_genfunc_paradefs take care of the fact that typesym might not be assigned for open array parameters, resolves #38012
|
4 years ago |
svenbarth
|
2ff18e48a0
* fix for Mantis #36909: apply patch by Ryan Joseph so that array constructors can be used for static arrays as well.
|
4 years ago |
Jonas Maebe
|
23956e9f10
* prevent quadratic complexity in the size of the inheritance chain when
|
4 years ago |
svenbarth
|
fa0c9adbf4
* extract checking whether two parameter defs of two procdefs are equal into a separate function
|
5 years ago |
yury
|
72dc2145e9
* In Delphi mode throw a conversion error when trying to typecast a pointer to a procdef when they use different memory models.
|
5 years ago |
svenbarth
|
52678562e3
* correctly handle selection between Single and Double overloads for Currency
|
5 years ago |
svenbarth
|
eaa2a2006c
* fix for Mantis #37272: also allow the empty set for dynamic array parameters; Delphi probably started to allow that together with array constructors.
|
5 years ago |
yury
|
2808873d1b
* Reworked the optimization of unused $parentfp for nested routines.
|
5 years ago |
yury
|
40504a6f9d
* If a nested procedure does not access its parent's frame pointer, optimize it by removing the hidden $parentfp parameter.
|
5 years ago |