Talk:Subleq: Difference between revisions
Content added Content deleted
(→Ada character input: Reply) |
|||
Line 13: | Line 13: | ||
I'm not an Ada programmer, but the [[Subleq#Ada|Ada sample]] looks wrong to me. In the ''read input'' step it uses <code>IIO.Get</code> to obtain the input, which I would have thought would read in an integer value, when it should just be reading a character. Is that a bug, or am I mistaken? |
I'm not an Ada programmer, but the [[Subleq#Ada|Ada sample]] looks wrong to me. In the ''read input'' step it uses <code>IIO.Get</code> to obtain the input, which I would have thought would read in an integer value, when it should just be reading a character. Is that a bug, or am I mistaken? |
||
--[[User:J4 james|j4_james]] ([[User talk:J4 james|talk]]) 22:30, 22 September 2015 (UTC) |
--[[User:J4 james|j4_james]] ([[User talk:J4 james|talk]]) 22:30, 22 September 2015 (UTC) |
||
:It's an integer. The array (Storage) is defined as an array of integers. The instructions for Subleq are all integers, so I don't know why it would be reading in characters if the language supports reading integers directly. --[[User:Markjreed|Markjreed]] ([[User talk:Markjreed|talk]]) 22:34, 22 September 2015 (UTC) |