[fpc-pascal] Unicode function names
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Thu Oct 20 13:25:39 CEST 2011
Sven Barth wrote:
> Am 20.10.2011 10:04, schrieb michael.vancanneyt at wisa.be:
>>
>>
>> On Thu, 20 Oct 2011, Mark Morgan Lloyd wrote:
>>
>>> Out of curiosity, I've just tried creating a function named ⍳ (Unicode
>>> character 2373, i.e. the APL iota function). FPC trunk complains
>>>
>>> Fatal: illegal character "'???'" ($E2)
>>>
>>> What is the rule here- functions must be entirely ANSI or functions
>>> must start with ANSI?
>>
>> To my knowledge FPC does not support non-ascii identifiers ?
>> Only a-z, 0-9 and _ are allowed.
>
> Yes, Michael is right. Only the ASCII characters a-z, A-Z, 0-9 and _ are
> allowed. There was no change in FPC what identifiers it understands.
> I personally wouldn't mind if that stay ASCII...
I agree, I was only experimenting on a whim. I think possibly that error
message could be improved though, since by the time it was output it had
been translated to a "I don't know what this is" blob and even the
numeric representation was lost.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list