Behavior identical to that in C where a pointer to 'void' can be implicitly converted to and from any pointer to object type. Furthermore, FreeBASIC even allows implicit conversion between an 'Any Ptr' and a procedure pointer, and vice versa.
Behavior identical to that in C where a pointer to 'void' can be implicitly converted to and from any pointer to object type.
A fix is proposed by SARG.
In terms of execution time, I find a very significant performance degradation with '-gen gas64' compared to '-gen gcc' only in the following two cases: - 'placement New' or 'placement New[]', without 'Any'. - 'overload New' or 'overload New[]', without 'Any'. ('New' or 'New[]', without 'Any' is OK). Can you look specifically at how memory is zeroed in the '-gen gas64' case compared to the '-gen gcc' case, and this applied to both 'placement New' or 'placement New[]', and 'overload New' or 'overload...
See also this other bug report: https://sourceforge.net/p/fbc/bugs/1013/ 1013 Non-optimization bug for 'New[]' / 'Delete[]' when datatype has no 'Constructor' (and without '{Any}' initializer) Both could be addressed simultaneously.
I started the topic "Validity/Behavior of 'ANY' initializer versus datatypes with default constructor": https://www.freebasic.net/forum/viewtopic.php?t=33278 to discuss and decide on the usage and behavior of 'Any' versus objects with constructors. Currently, the behavior of 'Any' varies greatly, depending on the data type and declaration type. Therefore, processing of this bug report is suspended for the time being.
I started the topic "Validity/Behavior of 'ANY' initializer versus datatypes with default constructor": https://www.freebasic.net/forum/viewtopic.php?t=33278 to discuss and decide on the usage and behavior of 'Any' versus objects with constructors. Currently, the behavior of 'Any' varies greatly, depending on the data type and declaration type. Therefore, processing of this bug report is suspended for the time being.
I started the topic "Validity/Behavior of 'ANY' initializer versus datatypes with default constructor": https://www.freebasic.net/forum/viewtopic.php?t=33278 to discuss and decide on the usage and behavior of 'Any' versus objects with constructors. Currently, the behavior of 'Any' varies greatly, depending on the data type and declaration type. Therefore, processing of this bug report is suspended for the time being.