Re: [fpc-pascal] C# stackalloc

2018-06-02 Thread wkitty42
On 06/02/2018 02:01 AM, Ryan Joseph wrote: So it looks like my idea wasn’t that crazy after all. ;) just because more than one person comes up with the same or similar idea does not mean that it is not crazy or worse ;) ;) ;) -- NOTE: No off-list assistance is given without prior approval

Re: [fpc-pascal] C# stackalloc

2018-06-02 Thread Ryan Joseph
> On Jun 2, 2018, at 2:54 PM, Michael Van Canneyt > wrote: > > 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. Ironically I totally agree but it’s so difficult to de

Re: [fpc-pascal] C# stackalloc

2018-06-02 Thread Michael Van Canneyt
On Sat, 2 Jun 2018, Ryan Joseph wrote: On Jun 2, 2018, at 1:44 PM, Michael Van Canneyt 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 o

Re: [fpc-pascal] C# stackalloc

2018-06-02 Thread Ryan Joseph
> On Jun 2, 2018, at 1:44 PM, Michael Van Canneyt > 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.

Re: [fpc-pascal] C# stackalloc

2018-06-01 Thread Michael Van Canneyt
On Sat, 2 Jun 2018, Ryan Joseph wrote: As a sanity check for myself if you remember a while ago I posted about an idea for “stack aliases” to override the memory allocation for classes. No one really liked the idea and lots of potential safety concerns were raised (fair criticisms). By ran

[fpc-pascal] C# stackalloc

2018-06-01 Thread Ryan Joseph
As a sanity check for myself if you remember a while ago I posted about an idea for “stack aliases” to override the memory allocation for classes. No one really liked the idea and lots of potential safety concerns were raised (fair criticisms). By random chance today I came upon this feature of