I just noticed this still doesn't provide good type safety as MyPtr can be
assigned an untyped pointer. Are pointers simply not an option here? Maybe we
need classes for opaque pointer types instead?
type
_MyPtr = record end;
MyPtr = ^_MyPtr;
var
p: Pointer;
x: MyPtr;
begin
x := p; //
On Fri, 2 Jun 2023 at 01:36, Steve Litt via fpc-pascal
wrote:
> fillchar(junkvar, junkvar_size, 'b');
> person := modperson(person, 'Martin');
> person := modperson(person2, 'Maria');
Maybe a typo? (E.g. person2 := modperson(person2, 'Maria'))
Henry
__