Gentee Programming Language > Documentation > Syntax Download documentation

The @ Operator And Text-Function Call

The @ operator is applied to call a text-function. This operation can be either unary or binary.

@ name(...)

If a text-function is called from the simple function or method, the text function will output data to a console. In case of calling the function from another text-function, data will be outputted to the same place as the current text-function. A text function may be called without the unary @ operator. In other words, the text function is called in the same way as the simple function.

dest @ name(...)

If the @ operator is applied as a binary operator, the left-hand operand must be a string, to which data will be outputted from the text function. In the example illustrated above, dest is a variable or an expression of the str type. Actually, data are appended to a destination string.

The @ operator is used not only for the text-function call, but also for the string output. If the right-hand operand is either a variable or an expression of the str type, this string will be outputted to the console or will be appended to a destination string as described above.

@mytext( 10 )
str a
a @ mytext( 20 )

See also

    Declaring text function    Table Of Operator Precedence


 Copyright © 2004-2006 Gentee Inc. All rights reserved.