[fpc-devel] Closures / anonymous methods
Michael Van Canneyt
michael at freepascal.org
Wed Oct 26 13:51:05 CEST 2016
On Wed, 26 Oct 2016, Paul van Helden wrote:
>> Specially when they are as invasive as yours. You are in essence
>> converting pascal to a C++ clone with this MO patch. Is it so bad that this
>> is discussed thoroughly first ?
>>
>>
> +1 for Oxygene mode. An Oxygene mode to me will be like early Christmas and
> the next 10 years' Christmases rolled together!
>
> I disagree that modernizing Pascal is making it into a C++ clone.
It depends on how you do it.
What is being introduced with management operators is RAII.
(Resource Acquisition Is Initialization)
This concept (using copy/clone constructors etc.) comes from C++.
Javascript doesn't have it. Python also not (to my knowledge).
And these are so-called 'modern' languages.
Michael.
More information about the fpc-devel
mailing list