[fpc-pascal] Primitive Record Wrappers
Sven Barth
pascaldragon at googlemail.com
Fri Mar 11 11:21:27 CET 2016
Am 11.03.2016 08:19 schrieb "Michael Van Canneyt" <michael at freepascal.org>:
>
>
>
> 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.
I agree.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160311/e172661a/attachment.html>
More information about the fpc-pascal
mailing list