Category: Language-Implementation
Superclass: RootNamespace
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.

Method category index

initialization (class)
basic (instance)
builtins (instance)
c call-outs (instance)
command-line (instance)
miscellaneous (instance)
printing (instance)
profiling (instance)
special accessing (instance)
testing (instance)

initialization (class)

initialize
Create the kernel's private namespace.

top


basic (instance)

halt
Interrupt interpreter

hash

Smalltalk usually contains a reference to itself, avoid infinite loops

top


builtins (instance)

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

top


c call-outs (instance)

environ
Not commented.

getArgc

Not commented.

getArgv: index

Not commented.

getenv: aString

Not commented.

putenv: aString

Not commented.

system: aString

Not commented.

system: aString withArguments: args

Not commented.

top


command-line (instance)

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.

top


miscellaneous (instance)

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.

top


printing (instance)

nameIn: aNamespace
Answer `'Smalltalk''.

printOn: aStream in: aNamespace

Store Smalltalk code compiling to the receiver

storeOn: aStream

Store Smalltalk code compiling to the receiver

top


profiling (instance)

rawProfile: anIdentityDictionary
Set the raw profile to be anIdentityDictionary and return the old one.

top


special accessing (instance)

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

top


testing (instance)

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

isSmalltalk

Answer `true'.

top