Talk:Subleq: Difference between revisions

From Rosetta Code
Content added Content deleted
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)

Revision as of 22:34, 22 September 2015

Just want to get some eyes on this and maybe a couple more implementations before releasing it.. Markjreed (talk) 01:34, 27 April 2015 (UTC)

Code points?

You mention code points and characters as well as giving character numbers. Should you just state that for this example use ASCII? --Paddy3118 (talk) 00:33, 28 April 2015 (UTC)

My example uses ASCII; I'll add language to that effect. But there's no reason to limit the implementation to ASCII. One that handled arbitrary Unicode code points would still run it fine. An EBCDIC machine might have a problem with it.. Markjreed (talk) 00:55, 28 April 2015 (UTC)

Promoting

Haven't seen any other complaints about the task, and we've got several implementations added, so I've promoted it out of draft status. Markjreed (talk) 17:51, 29 April 2015 (UTC)

Ada character input

I'm not an Ada programmer, but the Ada sample looks wrong to me. In the read input step it uses IIO.Get 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? --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. --Markjreed (talk) 22:34, 22 September 2015 (UTC)