Am Mo., 3. Dez. 2018, 00:33 hat Simon Jackson
geschrieben:
> Just an idea.
>
> Class variables. If generics are used, then the same code can be used for
> differing pointer types. (Classes) as long as a specifier on the "generic
> class variable" and no generic specialize or <> is in the
>
>
> On Dec 3, 2018, at 6:33 AM, Simon Jackson wrote:
>
> Just an idea.
>
> Class variables. If generics are used, then the same code can be used for
> differing pointer types. (Classes) as long as a specifier on the "generic
> class variable" and no generic specialize or <> is in the
>
>
nerics of a kind?
The code density in the cache would be good for all common generics.
https://kring.co.uk
From: fpc-devel on behalf of Sven
Barth via fpc-devel
Sent: Sunday, December 2, 2018 4:01:44 PM
To: FPC developers' list
Cc: Sven Barth
Subject: Re: [fpc-d
Am So., 2. Dez. 2018, 10:50 hat Ryan Joseph
geschrieben:
>
>
> > On Dec 2, 2018, at 4:00 PM, Sven Barth via fpc-devel <
> fpc-devel@lists.freepascal.org> wrote:
> >
> > Please report as a bug.
>
> I don’t get a bug on this in the trunk version I’m using. Maybe it was
> fixed?
>
Could be, I
> On Dec 2, 2018, at 4:00 PM, Sven Barth via fpc-devel
> wrote:
>
> Please report as a bug.
I don’t get a bug on this in the trunk version I’m using. Maybe it was fixed?
Regards,
Ryan Joseph
___
fpc-devel maillist -
Am Sa., 1. Dez. 2018, 08:44 hat Simon Jackson
geschrieben:
> GENERIC GHandle = 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
GENERIC GHandle = 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.