[SparForte][Banner]
[Top Main Menu] Intro | Tutorials | Reference | Packages | Examples | Contributors   [Back Page]      [Next Page]  

System Package

The SparForte System package provides information about the computer a script is running on, including the numeric precision limits, size of the basic memory units, amount of free memory and more.

GCC Ada equivalent: System

  System.System_Name            System.Fine_Delta
  System.Max_Int                System.Tick
  System.Min_Int                System.Storage_Unit
  System.Max_Binary_Modulus     System.Word_Size
  System.Max_Nonbinary_Modulus  System.Memory_Size
  System.Max_Base_Digits        System.Default_Bit_Order
  System.Max_Mantissa           System.Login_Shell
  System.Restricted_Shell       System.Script_License
  System.Script_Software_Model  System.System_Version
  System.Design_Phase           System.Development_Phase
  System.Maintenance_Phase      System.Testing_Phase
 
Help Command: Contents of the System package
  • System.System_Name- name of the system...string "SYSTEM_NAME_SPARFORTE"
  • System.System_Version- return the SparForte version string (e.g. 1.0)
  • System.Min_Int - smallest integer
  • System.Max_Int - largest integer
  • System.Max_Binary_Modulus - maximum size for a modular type (if power of 2
  • System.Max_Nonbinary_Modulus - maximum size for a modular type (if not power of 2)
  • System.Max_Base_Digits - maximum decimal precision for a range
  • System.Max_Digits - largest number of digits allowed for a floating-point number
  • System.Max_Mantissa - largest number of binary digits allowed for a fixed-point number
  • System.Fine_Delta - smallest delta allowed for a fixed-point number
  • System.Tick - basic clock period in seconds
  • System.Storage_Unit - number of bits per unit of storage (e.g. 8 bits)
  • System.Word_Size - size of a word in bits (e.g. 32)
  • System.Memory_Size - number of available storage units (e.g. 4 Gig of virtual memory)
  • System.Default_Bit_Order - the "endianness" of your computer (eg. HIGH_ORDER_FIRST)
  • System.Login_Shell - (boolean) true if this is a login shell (AdaScript extension)
  • System.Restricted_Shell - (boolean) true if this is a restricted shell (AdaScript extension)
  • System.Script_License - (string) the license name set by pragma license (or empty string if none)
  • System.Script_Software_Model - (string) the software model name set by pragma software_model (or empty string if none)
  • System.Design_Phase - (boolean) true if running in the design phase of the SDLC
  • System.Development_Phase - (boolean) true if running in the development phase of the SDLC
  • System.Maintenance_Phase - (boolean) true if running in the maintenance phase of the SDLC
  • System.Testing_Phase - (boolean) true if running in the testing phase of the SDLC

SparForte is case-sensitve.  "system.system_name" is not the same as "System.System_Name".

=> ? System.Memory_Size
 4294967296

 
[Right Submenu]

 Summary

 arrays

 btree_io

 calendar

 cgi

 chains

 command_line

 db/ postgresql

 dbm

 directory_operations

 doubly_linked...

 dynamic_hash_...

 enums

 exceptions

 files

 gnat.cgi

 gnat.crc32

 hash_io

 lock_files

 memcache

 memcache.highread

 mysql

 mysqlm

 numerics

 os

 pen

 pen (OpenGL)

 records

 sound

 source_info

 stats

 strings

 System

 teams

 templates

 text_io

 units

[Back to Top] Back To Top [Small Forte Symbol]