Skip to content
Tcl Source Code Artifact [fd8141f6dc]
Login

Artifact [fd8141f6dc]

Artifact fd8141f6dcd099afa561b533444eb94c1520ba77:

Wiki page [numeric Object Types] by dgp on 2014-09-15 03:22:37.
D 2014-09-15T03:22:37.886
L numeric\sObject\sTypes
P 0d25cec79d27eaf1e7c40cdc9e05579485f53a3e
U dgp
W 1644
<h1>Source Files</h1>
  *  portions of [/finfo?name=generic/tclObj.c|tclObj.c]

<h1>Public Routines</h1>
  *  Tcl_NewBooleanObj
  *  Tcl_DbNewBooleanObj
  *  Tcl_SetBooleanObj
  *  Tcl_GetBooleanFromObj
  *  Tcl_NewDoubleObj
  *  Tcl_DbNewDoubleObj
  *  Tcl_SetDoubleObj
  *  Tcl_GetDoubleFromObj
  *  Tcl_NewIntObj
  *  Tcl_SetIntObj
  *  Tcl_GetIntFromObj
  *  Tcl_NewLongObj
  *  Tcl_DbNewLongObj
  *  Tcl_SetLongObj
  *  Tcl_GetLongFromObj
  *  Tcl_NewWideIntObj
  *  Tcl_DbNewWideIntObj
  *  Tcl_SetWideIntObj
  *  Tcl_GetWideIntFromObj
  *  Tcl_NewBignumObj
  *  Tcl_DbNewBIgnumObj
  *  Tcl_GetBignumFromObj
  *  Tcl_TakeBignumFromObj
  *  Tcl_SetBignumObj

<h1>Private Routines</h1>
  *  TclSetBooleanFromAny
  *  TclGetNumberFromObj
  *  TclSetBignumIntRep

<h1>Directly Depends On Public Routines From</h1>
  *  [Tcl_Obj System]
  *  [string Object Type]
  *  [Parsing and Evaluation]
  *  [Panic]

<h1>Directly Depends On Private Routines From</h1>
  *  [Numbers]

<h1>Discussion</h1>

Depends on <b>Tcl_PrintDouble</b> and <b>TclFormatInt</b> 
which ought to just be here, or in [Numbers].

The <b>TclGetNumberFromObj</b> or some other scheme for similar
function would be useful public.

Probably worth raising the question as to what degree the notion of
a "wide integer" is a historical detour, and if there are other ways to
get at integral types of different sizes that might be easier to use
looking ahead.

Generating the string rep of a bignum scales very very very very badly.
For large enough values we can expect decimal string rep generation
to take <i>years</i>.
Z 43dc65381527290cd7389dc6e6df07b4