Re: [fpc-pascal] Subclassing generic records?

2017-07-17 Thread Ryan Joseph
> On Jul 17, 2017, at 10:58 AM, Sven Barth via fpc-pascal > wrote: > > I'll need to check whether Delphi allows that for helpers (doesn't matter > whether the extended type is a specialization or not). > > Thanks Sven. Records/objects/classes in Pascal feel very confused right now. Records

Re: [fpc-pascal] Subclassing generic records?

2017-07-17 Thread Sven Barth via fpc-pascal
Am 17.07.2017 18:24 schrieb "Ryan Joseph" : > > I’m trying to find a way to extend generic records since (as far as I know) there is no subclassing of records. I could use variant records here but these don’t work with generics so I tried record helpers and properties to basically rename the x/y va

[fpc-pascal] Subclassing generic records?

2017-07-17 Thread Ryan Joseph
I’m trying to find a way to extend generic records since (as far as I know) there is no subclassing of records. I could use variant records here but these don’t work with generics so I tried record helpers and properties to basically rename the x/y variables in TVec2 but I get errors on the widt

Re: [fpc-pascal] C to Pascal conversion - Help request

2017-07-17 Thread Sandro Cumerlato
Thank you Dmitry for your clarification. Best regards. Sandro Cumerlato On 17 July 2017 at 14:26, Dmitry Boyarintsev wrote: > > > On Mon, Jul 17, 2017 at 7:17 AM, Sandro Cumerlato < > sandro.cumerl...@gmail.com> wrote: > >> Hello, >> can someone please help me converting the folowing C types

Re: [fpc-pascal] C to Pascal conversion - Help request

2017-07-17 Thread Dmitry Boyarintsev
On Mon, Jul 17, 2017 at 7:17 AM, Sandro Cumerlato < sandro.cumerl...@gmail.com> wrote: > Hello, > can someone please help me converting the folowing C types to Pascal? > SF_CUE_POINT is simple, but I'm not sure how to convert SF_CUES_VAR(count) > ad SF_CUES. > > type SF_CUES = record cue

[fpc-pascal] C to Pascal conversion - Help request

2017-07-17 Thread Sandro Cumerlato
Hello, can someone please help me converting the folowing C types to Pascal? SF_CUE_POINT is simple, but I'm not sure how to convert SF_CUES_VAR(count) ad SF_CUES. Thank you in advance! Sandro Cumerlato typedef struct { int32_t indx ; uint32_t position ; int32_t fcc_chunk ; int32_t chunk_start