[fpc-devel] Type range in generic
Simon Jackson
jackokring at gmail.com
Fri Nov 30 16:12:38 CET 2018
GENERIC GHandle<T, R> = CLASS
PROTECTED
it: Array [R] of T;
FUNCTION readIt(p: R): T; VIRTUAL;
PROCEDURE WriteIt(p: R; what: T); VIRTUAL;
PUBLIC
PROPERTY gimmeIt[p: R] READ ReadIt WRITE Writeit; DEFAULT; (* does this
work? x.y -> x.it.y *)
END;
Error: Error in type definition just after R on line 3.
--
http://www.kring.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20181130/232b2f4a/attachment.html>
More information about the fpc-devel
mailing list