Am 30.11.2020 um 13:20 schrieb LacaK via fpc-pascal:
Hi,
is there a way how to initialize record member of pointer type (other
than PChar) in the following example:
type
TMyRec=record
a: PByte; // if I change PByte to PAnsiChar then it works
end;
const
MyConst: TMyRec = (a: 'abcd')
Hi,
is there a way how to initialize record member of pointer type (other
than PChar) in the following example:
type
TMyRec=record
a: PByte; // if I change PByte to PAnsiChar then it works
end;
const
MyConst: TMyRec = (a: 'abcd'); // I want to a points to static memory
where 'abcd'
On Mon, Nov 30, 2020 at 4:43 AM Derek Stewart via fpc-pascal
wrote:
>
> Hi,
>
> I have just discover FreePascal and compiled FPC from source. I must say
> it look very good.
>
> I did a software engineering course in the UK Open University, in the
> 1980s, which was mainly Pascal orientated.
>
> I