[fpc-pascal] C# stackalloc

Michael Van Canneyt michael at freepascal.org
Sat Jun 2 09:54:59 CEST 2018



On Sat, 2 Jun 2018, Ryan Joseph wrote:

>
>
>> On Jun 2, 2018, at 1:44 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>> 
>> 2 remarks:
>> 1. It's only for arrays
>> 2. It's for fixed-length arrays
>> 
>> So you can do this in FPC today.
>> 
>> Thirdly, you have objects which can be allocated on the stack, or advanced
>> records.
>> 
>> Plenty of choice for you.
>
> yes indeed. It’s just interesting because “stackalloc” basically swaps the memory backend and there’s a precedent for such a thing happening and in  a very popular language. The hacker in me wants to play around with that idea in FPC to see what emerges.
>
> If management operators stick around there’s lots of potential to make advanced records a strong alternative. Best feature added to FPC is a while IMO so hopefully they survive the drama. :)

People have come and went. But the features have always remained. 
They may receive more or less TLC of course.

Personally, I don't understand the obsession with language features.
If anything, I would make the language more simple. 
But this is just me swimming against the current.

Michael.


More information about the fpc-pascal mailing list