[fpc-pascal] Primitive Record Wrappers

Michael Van Canneyt michael at freepascal.org
Fri Mar 11 08:19:40 CET 2016



On Fri, 11 Mar 2016, Sven Barth wrote:

> Am 11.03.2016 04:16 schrieb "silvioprog" <silvioprog at gmail.com>:
>>
>> On Sun, Mar 6, 2016 at 7:21 PM, Mazola Winstrol <mazofeifer at gmail.com>
> wrote:
>> [...]
>>>
>>> Please see the code in attachments and send your suggestions / remarks.
>>
>>
>> Thanks for share.
>>
>> How do I use the the NullableTypes.String unit?
>>
>> Tried:
>>
>> program project1;
>>
>> {$mode objfpc}{$H+}
>>
>> uses NullableTypes.String;
>>
>> begin
>> end.
>>
>> Got:
>>
>> Fatal: Syntax error, "identifier" expected but "STRING" found
>
> That is indeed not the best name around, but use "&String", that should
> work...

Maybe rename this to NullableTypes.Strings ?

Using keywords as identifiers is a really bad idea.

I can understand it if you need to import data/routines from another
language, but really not for native pascal routines.

Michael.



More information about the fpc-pascal mailing list