#include <YCPCode.h>
Inheritance diagram for YCPReturnRep:
Public Member Functions | |
YCPOrder | compare (const YCPReturn &v) const |
string | toString () const |
std::ostream & | toStream (std::ostream &str) const |
YCPValueType | valuetype () const |
Protected Member Functions | |
YCPReturnRep () | |
~YCPReturnRep () | |
Friends | |
class | YCPReturn |
YCPReturn is used as a result value in YCode->evaluate in order to distinguish a normal statement/block (resulting in YCPVoid) from a 'return;' (resulting in YCPReturn) A return with value 'return <expr>;' statement results in a YCPValue (!= YCPVoid() since 'return nil;' is not allowed)
|
Constructor |
|
Cleans up. |
|
Compares two YReturns for equality, greaterness or smallerness. |
|
Output value as bytecode to stream Implements YCPElementRep. |
|
Returns an ASCII representation of the YCPReturn. Implements YCPElementRep. |
|
Returns YT_BREAK. See YCPValueRep::type. Implements YCPValueRep. |
|
|