Talk:Generate lower case ASCII alphabet: Difference between revisions
Talk:Generate lower case ASCII alphabet (view source)
Revision as of 06:02, 8 April 2016
, 8 years ago→ASCII alphabet vs. EBCDIC vs. Latin (English) alphabet
(→ASCII alphabet vs. EBCDIC vs. Latin (English) alphabet: added more comments.) |
|||
Line 14:
: I don't think this task has anything to do with the visual appearance of the letters. If you are on a system which only supports EBCDIC for IO then I think for this task you would need an internal representation of ASCII as indices into an array of EBCDIC characters. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 03:49, 8 April 2016 (UTC)
:: Er, no, I don't. It's not the visual appearance of the ''letter'', it's what a particular 8-bit character is presented (shown) as. The hexadecimal value of '''<big>4A</big>''' is shown as ASCII '''<big>J</big>''', or as EBCDIC '''<big>¢</big>'''. So in that narrow sense, the glyph shown is important. That was one reason why I created the Rosetta Code task of ''Idiomatically determine all the lowercase and uppercase letters''. The point is that the program doesn't have to know what the ASCII code is for a (particular) lowercase letter. That's the idiomatic part of the task. The same point can be made for this task. It's this point in mind that I thought the author was making when he said to ''use a reliable style of coding''. Keep in mind, the REXX program that I entered works on both ASCII and EBCDIC (and makes no assumption about the whether or not the lowercase letters are contiguous), and there isn't a need to translate anything, no matter which system is being run on. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 04:41, 8 April 2016 (UTC)
::: Isn't [[Idiomatically_determine_all_the_lowercase_and_uppercase_letters]] a different task from this one? --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 06:02, 8 April 2016 (UTC)
As to the ''use a reliable style of coding'' phrase, I interpreted that to mean to code the program in such a way to not assume that the lowercase letters may not be contiguous on other systems, and that the programer should test if a particular character is indeed, a lowercase character. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:04, 7 April 2016 (UTC)
|