[opentheory-users] negative integers

Ramana Kumar ramana.kumar at gmail.com
Thu Feb 16 00:34:31 UTC 2012


On Wed, Feb 15, 2012 at 5:32 PM, Joe Hurd <joe at gilith.com> wrote:

> 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.
>

Yeah that's the issue: it complicates what proper article readers have to
do.
Readers I've written would fail to handle negative integers... but I guess
I'll wait for such an article to appear before worrying much.


> 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
> >
>
> _______________________________________________
> opentheory-users mailing list
> opentheory-users at gilith.com
> http://www.gilith.com/opentheory/mailing-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gilith.com/opentheory/mailing-list/attachments/20120216/eba3e4c3/attachment.htm>


More information about the opentheory-users mailing list