maxint
and minint
. Find
out how they are defined by marking e.g. maxint and clicking the
Definition button in the toolbar (or
double-click maxint
, or press Alt+Right).
Maxint is apparently defined in the file 'betaenv'. Double-click the three dots beside maxint
.
Continue the same way with maxint32
to find out the actual value.
Now we return to 'minmax'. Click the Back button in the toolbar (or right-click and choose 'back', or press Ctrl+Left). Go back until the 'minmax'-program is displayed.
min->putint
and enter text editing mode. Add (# format::< (##) #)
to putint
as shown:
Double-click format
. Because the compiler has not yet checked the text you have just typed, it does not yet know what it means. So answer yes when asked whether to check the program.
Now you can see the attributes of putint
, they should be self-explanatory. Further bind putint.format
in minmax
, so that it prints min
right adjusted with width 10 and zero-padding.
Now all the files in ~beta/containers/ are displayed. Browse through the files and inspect the different kinds of containers. There are quite a few of them.
Whenever you find (*)
in a program, it means the program contains a comment at that point. If you double-click the asterisk, the comment is displayed. Double-click again, and the comment is hidden. You can also use Alt+Right or the Definition button in the toolbar.
If ever you find that too much code is being displayed and you would like an overview of the program, you can press Alt+Up. This hides all the details. Double-click to get more details (or mark and press Alt+Right or click the Definition button in the toolbar). To show all details in a selection recursively, press Alt+Down.
Mjolner Tool Workshop | © 2001-2004 Mjølner Informatics |
[Modified: Wednesday September 12th 2001 at 16:07]
|