Up: GEOS SDK TechDocs | Up | Prev: keyboard ... | Next: memsize ...

load

load <file>

Load a file of Tcl commands.

loadapp

Load an application from swat. Single argument is the file name of the application to launch (application must reside in the appl subdirectory of the GEOS tree).

The application is opened in normal application mode. Note that the application will not be loaded until you continue the machine, as the loading is accomplished by sending a message to the UI.

loadgeode

Load a geode from swat. Mandatory first argument is the name of the file to load (with path from top-level GEOS directory, using / instead of \ as the path separator).

Second and third arguments are the data words to pass to the geode. The second argument is passed to the geode in cx, while the third argument is passed in dx.

Both the second and third arguments are optional and default to 0. They likely are unnecessary.

locals

locals [<func>]

Examples:

"locals"
Print the values of all local variables and arguments for the current frame.
"locals WinOpen"
Print the names of all local variables for the given function. No values are printed.

Allows you to quickly find the values or names of all the local variables of a function or stack frame.

See Also: print, frame, info.

localwin

localwin [<numlines>]

Examples:

"localwin"
Display local variables in a 10-line window
"localwin 15"
Display local variables in a 15-line window
"localwin off"
Turn off the local variable display

Turn on or off the continuous display of local variables.

loop

Simple integer loop procedure. Usage is:
loop <loop-variable> <start>,<end> [step <step>] <body>

<start>, <end>, and <step> are integers. <body> is a string for Tcl to evaluate. If no <step> is given, 1 or -1 (depending as <start> is less than or greater than <end>, respectively) is used. <loop-variable> is any legal Tcl variable name.

map

map <var-list> <data-list>+ <body>

Examples:

"map {i j} {a b} {c d} {list $i $j}"
Executes the command "list $i $j" with i and j assigned to successive elements of the lists {a b} and {c d}, respectively, merging the results into the list {{a c} {b d}}

This applies a command string to the successive elements of one or more lists, binding each element in turn to a variable and evaluating the command string. The results of all the evaluations are merged into a result list.

See Also: foreach, mapconcat.

mapconcat

mapconcat <var-list> <data-list>+ <body>

Examples:

"mapconcat {i j} {a b} {c d} {list $i $j}"
Executes the command "list $i $j" with i and j assigned to successive elements of the lists {a b} and {c d}, respectively, merging the results into a string.

map-method

map-method <number> <object>
map-method <number> <class-name> [<object>]

Examples:

"map-method ax ^lbx:si"
Prints the name of the message in ax, from the object at ^lbx:si's perspective.
"map-method 293 GenClass"
Prints the name of message number 293 from GenClass's perspective.

Maps a message number to a human-readable message name, returning that name. This command is useful both for the user and for a Tcl procedure.

See Also: obj-class.

mcount

mcount [<args>]

Examples:

"mcount"
start the method count or print the count
"mcount reset"
restart the method count
"mcount stop"
stop the method count
"mcount MyAppRecalcSize"
count messages handled by MyAppRecalcSize

Keep a count of the methods called.

The args argument may be one of the following:

nothing
start the method count or print the current count
'reset'
reset the count to zero
'stop'
stop the method count and remove it's breakpoint
message handler
start the method count for a particular method

See Also: mwatch, showcalls.


Up: GEOS SDK TechDocs | Up | Prev: keyboard ... | Next: memsize ...