mn8 Language Reference | Index    

Nil

SUMMARY: NO ATTRIBUTES  NO ELEMENTS  NO CONSTRUCTORS  OPERATORS SUMMARY  METHODS SUMMARYDETAIL: NO ATTRIBUTES  NO ELEMENTS  NO CONSTRUCTORS  OPERATOR DETAILS  METHOD DETAILS

Description

The keyword "nil" denotes a special value that indicates that a variable has no value. Note that we refer both to the value and the value type as nil. Variables that are declared without an initial value are initialized to the nil value.

Usage

        $a = Nil + 1
        PRINT $a
            1

        $b = "Hello"
        $c = " World!"
        $d = Nil
        $a = $b + $d + $c
        PRINT $a
            Hello World!

        PRINT $d.getConceptType
            Nil

Version: 0.1
Authors:Remus Pereni (http://neuro.nolimits.ro)
Location:
Inherits: Concept

Operator List

Logical== (Concept $value)
Concept+ (Concept $value)
top
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML, setResourceURI

Detailed Operator Info

== (Concept $value)
Parameters:
$value :To this will be compared this concept.

Returns true if this concept equals with parameter or false otherwise.

top
+ (Concept $value)
Parameters:
$value :The concept to which will be added

Adds the nil concept to the concept given in parameter.

top

Detailed Method Info