Alex Rivera | Logout

What is the 'accumulator' in HQ9+?

Asked 2010-05-04T14:59:51.527
17

I was just reading a bit about the HQ9+ programming language:

and it tells me something about a so-called “accumulator” which can be incremented, but not accessed. Also, using + doesn't manipulate the result, so that the input

H+H

gives the result:

Hello World
Hello World

Can anyone explain me how this works, what it does, and whether it makes any sense? Thanks.

Edit
Report

1 Answer

6

It increments something not accessible, not spec-defined, and apparently not really even used. I'd say you can implement it however you want or possibly not at all.

answered 2010-05-04T15:16:20.143

Your Answer