Re: [fpc-devel] Pure function development

2020-04-28 Thread Sven Barth via fpc-devel
Am 29.04.2020 um 00:31 schrieb J. Gareth Moreton: Hi everyone, I'm having a serious bash at developing pure functions for FPC now, specifically 'node emulation' so it can step through a pure function and compute output values.  One of the small problems I'm trying to solve is keeping track

[fpc-devel] Pure function development

2020-04-28 Thread J. Gareth Moreton
Hi everyone, I'm having a serious bash at developing pure functions for FPC now, specifically 'node emulation' so it can step through a pure function and compute output values.  One of the small problems I'm trying to solve is keeping track of the state of variables, some of which are record

Re: [fpc-devel] New feature announcement: constant parameters for generics

2020-04-28 Thread Benito van der Zander
Hi, Also assume you have a record and a hashmap that stores them. Now you add a string to the record which turns it into a managed one and suddenly your code will no longer work, probably resulting in subtle bugs or memory leaks. That's /not/ what should happen for merely adding a string.