Opened 15 years ago

Closed 15 years ago

#99 closed proposed feature (wontfix)

MAXINT as system-variable

Reported by: gorzelc@… Owned by: hannes
Priority: minor Milestone: 3-1-1
Component: singular-kernel Version:
Keywords: MAXINT Cc:

Description

For several procs, it would be useful to have the value of MAXINT available.

A query comes up with:

gorzelc@linux:~/Desktop/Singular/3-1-0/LIB> grep  2147483647 *.lib
aksaka.lib
atkins.lib
crypto.lib
general.lib
noether.lib
primitiv.lib

Authors of a library then had not to declare

   int MAXINT =  2147483647; // this is int(bigint(2)^32 - 1)

but could access

either directly a (built)variable

  MAXINT;

or could get the value by

 system("MAXINT");

This would also keep the relevant procs up-to-date when
up-grading from 32- to 64-bit machines.

Change History (1)

comment:1 Changed 15 years ago by hannes

Milestone: Release 3-1-0Release following release 3-1-0
Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.