----boundary-LibPST-iamunique-1608819247_-_-
Content-type: text/plain
> -----Original Message-----
> From: H. v. L. [mailto:hvl{([at]})nowhere.xy>
> recently I ran into some mischief using the predeclared
> Compiler Function
> CAP because the result was somewhat unexpected.
> The results and the problem can be found in the following
> coded text,
> perhaps somebody knows an answer:
>
Although the result is not what you might expect, it can be argued that
it does not contradict the language report. Note that the language
report qualifies the Argument type thus: 'x is a Latin-1 letter'.
The characters 2 and blank, as used in your example, are not Latin-1
'letters' as defined in Section 3. 'Vocabulary and Representation'.
The language report does not define what the result of the function
should be if x is not a letter.
My conclusion is that it is the programmer's responsibility to confirm
that the argument is a letter before calling the CAP function, if a
predictable result is required.
Regards,
Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp
info{([at]})nowhere.xy
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-1608819247_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxnc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