Re: [fpc-pascal] Concatenating CP Strings

2018-09-14 Thread Mattias Gaertner via fpc-pascal
On Sat, 15 Sep 2018 01:38:33 +0200 Martok wrote: > Hi all, > > concatenating codepage strings is documented to be a bit weird: > > > Knowing this, how does one achieve the following? > > - have a string in any dynamic

[fpc-pascal] Concatenating CP Strings

2018-09-14 Thread Martok
Hi all, concatenating codepage strings is documented to be a bit weird: Knowing this, how does one achieve the following? - have a string in any dynamic codepage - append another string (possibly from different CP), or a

Re: [fpc-pascal] with in classes/records

2018-09-14 Thread Ryan Joseph
How should this syntax work? TWrapper needs to allow assignments of TWrapper for constructors but it also should accept assignments of THelperA for the default write property. Is that a problem or should TWrapper be able to assign both? It looks strange so I thought I would ask.

Re: [fpc-pascal] with in classes/records

2018-09-14 Thread Ryan Joseph
Is a + operator that returns something other than the record valid? I tried doing that but I get an error. type TWrapper = record class operator + (left: TWrapper; right: integer): integer; end; var wrapper: TWrapper; i: integer; begin i