[opentheory-users] negative integers

Joe Hurd joe at gilith.com
Wed Feb 15 17:32:34 UTC 2012


Hi Ramana,

I actually went back and forth on this one, and previous versions of
the article format asked for nonnegative integers. All of the
OpenTheory tools I've implemented only write articles with nonnegative
integers (though they should still be able to read articles with
negative integers.

However, I eventually settled on integers just because they're a more
natural(!) concept in programming languages and thus a little easier
to explain in the spec, and the only thing they're used for is a type
of key in the object dictionary.

Cheers,

Joe

On Wed, Feb 15, 2012 at 8:04 AM, Ramana Kumar <ramana.kumar at gmail.com> wrote:
> Is the virtual machine supposed to be able to process negative numbers?
> The article file format seems to allow a leading "-" for a decimal integer
> command.
> But I don't think any other commands would make use of negative integers; I
> think it's a mistake to allow them.
>
>
> _______________________________________________
> opentheory-users mailing list
> opentheory-users at gilith.com
> http://www.gilith.com/opentheory/mailing-list
>



More information about the opentheory-users mailing list