[fpc-pascal] C# stackalloc

Ryan Joseph ryan at thealchemistguild.com
Sat Jun 2 09:35:10 CEST 2018



> 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. :)

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list