[fpc-devel] Type range in generic

Sven Barth pascaldragon at googlemail.com
Sun Dec 2 10:00:20 CET 2018


Am Sa., 1. Dez. 2018, 08:44 hat Simon Jackson <jackokring at gmail.com>
geschrieben:

> 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.
>

Please report as a bug.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20181202/24204389/attachment.html>


More information about the fpc-devel mailing list