[fpc-pascal] Operator overloading

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Mon Sep 21 21:39:10 CEST 2009

Jonas Maebe wrote:
> On 19 Sep 2009, at 22:21, Mark Morgan Lloyd wrote:
>> Is there any way of overloading the ^ (dereference) operator for a 
>> user-defined type?
> No, it isn't.

Shucks :-)  I remember that JPI v1 had what they called "virtual 
pointers" which specified a dereference function and could be useful, 
OTOH with today's flat memory and improved OSes there's probably other 
ways of doing it.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list