The contents of a program – HP 48g Graphing Calculator User Manual

Page 408

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

The Contents of a Program

As mentioned above, a program contains a sequence of objects. As
each object is processed in a program, the action that results depends
on the type of object, as summarized below.

Actions for Certain Objects in Programs

Object

Action

Command

Executed.

Number

Put on the stack.

Algebraic

Put on the stack.

String

Put on the stack.

List

Put on the stack.

Program

Put on the stack.

Global name (quoted)

Put on the stack.

Global name (unquoted)

■ Program executed.

■ Name evaluated.
■ Directory becomes current.
■ Other object put on the stack.

Local name (quoted)

Put on the stack.

Local name (unquoted)

Contents put on the stack.

29

As you can see from this table, most types of objects are simply put
on the stack—but built-in commands and programs called by name

are executed. The following examples show the results of executing
programs containing different sequences of objects.

29-2 Programming the HP 48

Advertising
This manual is related to the following products: