122-32000 Parallax Inc, 122-32000 Datasheet - Page 301

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
RETURN
Exit from
((PUB ┆ PRI))
Returns: Either the current
Explanation
RETURN
execution.
pops the call stack once and returns to the caller of this method, delivering a value in the
process.
Every
entered in one or more places within the method to create multiple exit points.
When
built-in
that Value instead.
About the Call Stack
When methods are called, simply by referring to them from other methods, there must be
some mechanism in place to store where to return to once the called method is completed.
This mechanism is a called a “stack” but we’ll use the term “call stack” here. It is simply
RAM memory used to store return addresses, return values, parameters and intermediate
results. As more and more methods are called, the call stack logically gets longer. As more
and more methods are returned from (via
call stack gets shorter. This is called “pushing” onto the stack and “popping” off of the stack,
respectively.
The
immediate caller; the one who directly called the method that just returned.
RETURN 〈
RETURN
RETURN
PUB
is one of two commands (
RESULT
Value
method.
PUB
or
RETURN
command pops the most recent data off the call stack to facilitate returning to the
Value
/
PRI
is an optional expression whose value is to be returned from the
appears without the optional Value, it returns the current value of the
PRI
variable. If the Value field was entered, however, the
method has an implied
method with optional return Value.
causes a return from a
RESULT
ABORT
value, or Value if provided.
4: Spin Language Reference –
and
RETURN
PUB
RETURN
RETURN
or
at its end, but
PRI
or by reaching the end of the method) the
) that terminate a
method with normal status; meaning it
Propeller Manual v1.0 · Page 301
RETURN
PUB
can also be manually
PUB
or
or
PRI
PRI
returns with
PUB
method’s
PUB
or
/
PRI
PRI
’s

Related parts for 122-32000