[fpc-pascal] Operator overloading

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Sat Sep 19 22:21:34 CEST 2009

Is there any way of overloading the ^ (dereference) operator for a 
user-defined type?

I'm looking at a simple Prolog interpreter written in TP3, i.e. 16-bit 
code, and I think I might even have a fun use for it.

Obviously it's chock-full of segment:offset pointers but if ^ could be 
overloaded it might make it easier to implement or at least to debug a 
local heap.

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