Back: SymLink-printing Up: Base classes Forward: SystemDictionary class-initialization   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.154 SystemDictionary

Defined in namespace Smalltalk
Superclass: RootNamespace
Category: Language-Implementation
I am a special namespace. I only have one instance, called "Smalltalk", which is known to the Smalltalk interpreter. I define several methods that are "system" related, such as #quitPrimitive. My instance also helps keep track of dependencies between objects.

1.154.1 SystemDictionary class: initialization  (class)
1.154.2 SystemDictionary: basic  (instance)
1.154.3 SystemDictionary: builtins  (instance)
1.154.4 SystemDictionary: c call-outs  (instance)
1.154.5 SystemDictionary: command-line  (instance)
1.154.6 SystemDictionary: miscellaneous  (instance)
1.154.7 SystemDictionary: printing  (instance)
1.154.8 SystemDictionary: special accessing  (instance)
1.154.9 SystemDictionary: testing  (instance)


1.154.1 SystemDictionary class: initialization

initialize
Create the kernel's private namespace.


1.154.2 SystemDictionary: basic

halt
Interrupt interpreter

hash
Smalltalk usually contains a reference to itself, avoid infinite loops


1.154.3 SystemDictionary: builtins

basicBacktrace
Prints the method invocation stack backtrace, as an aid to debugging

byteCodeCounter
Answer the number of bytecodes executed by the VM

debug
This methods provides a way to break in the VM code. Set a breakpoint in _gst_debug and call this method near the point where you think the bug happens.

declarationTrace
Answer whether compiled bytecodes are printed on stdout

declarationTrace: aBoolean
Set whether compiled bytecodes are printed on stdout

executionTrace
Answer whether executed bytecodes are printed on stdout

executionTrace: aBoolean
Set whether executed bytecodes are printed on stdout

getTraceFlag: anIndex
Private - Returns a boolean value which is one of the interpreter's tracing flags

setTraceFlag: anIndex to: aBoolean
Private - Sets the value of one of the interpreter's tracing flags (indicated by 'anIndex') to the value aBoolean.

verboseTrace
Answer whether execution tracing prints the object on the stack top

verboseTrace: aBoolean
Set whether execution tracing prints the object on the stack top


1.154.4 SystemDictionary: c call-outs

getArgc
Not commented.

getArgv: index
Not commented.

getenv: aString
Not commented.

putenv: aString
Not commented.

system: aString
Not commented.


1.154.5 SystemDictionary: command-line

arguments: pattern do: actionBlock
Parse the command-line arguments according to the syntax specified in pattern. For every command-line option found, the two-argument block actionBlock is evaluated passing the option name and the argument. For file names (or in general, other command-line arguments than options) the block's first argument will be nil. For options without arguments, or with unspecified optional arguments, the block's second argument will be nil. The option name will be passed as a character object for short options, and as a string for long options.

If an error is found, nil is returned. For more information on the syntax of pattern, see #arguments:do:ifError:.

arguments: pattern do: actionBlock ifError: errorBlock
Parse the command-line arguments according to the syntax specified in pattern. For every command-line option found, the two-argument block actionBlock is evaluated passing the option name and the argument. For file names (or in general, other command-line arguments than options) the block's first argument will be nil. For options without arguments, or with unspecified optional arguments, the block's second argument will be nil. The option name will be passed as a character object for short options, and as a string for long options.

If an error is found, the parsing is interrupted, errorBlock is evaluated, and the returned value is answered.

Every whitespace-separated part (`word') of pattern specifies a command-line option. If a word ends with a colon, the option will have a mandatory argument. If a word ends with two colons, the option will have an optional argument. Before the colons, multiple option names (either short names like `-l' or long names like `--long') can be specified. Before passing the option to actionBlock, the name will be canonicalized to the last one.

Prefixes of long options are accepted as long as they're unique, and they are canonicalized to the full name before passing it to actionBlock. Additionally, the full name of an option is accepted even if it is the prefix of a longer option.

Mandatory arguments can appear in the next argument, or in the same argument (separated by an = for arguments to long options). Optional arguments must appear in the same argument.


1.154.6 SystemDictionary: miscellaneous

arguments
Return the command line arguments after the -a switch

backtrace
Print a backtrace on the Transcript.

hostSystem
Answer the triplet corresponding to the system for which GNU Smalltalk was built.


1.154.7 SystemDictionary: printing

nameIn: aNamespace
Answer `'Smalltalk".

printOn: aStream in: aNamespace
Store Smalltalk code compiling to the receiver

storeOn: aStream
Store Smalltalk code compiling to the receiver


1.154.8 SystemDictionary: special accessing

addFeature: aFeature
Add the aFeature feature to the Features set

hasFeatures: features
Returns true if the feature or features in 'features' is one of the implementation dependent features present

removeFeature: aFeature
Remove the aFeature feature to the Features set

version
Answer the current version of the GNU Smalltalk environment


1.154.9 SystemDictionary: testing

imageLocal
Answer whether the kernel directory is a subdirectory of the image directory (non-local image) or not.

isSmalltalk
Answer `true'.



Back: SystemDictionary-special accessing Up: SystemDictionary Forward: SystemExceptions.AlreadyDefined   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html