Subject: Re: SDL-News: Quoted operation name
From: Rick Reed TSE (rickreed#tseng.co.uk)
Date: Mon Oct 08 2001 - 17:14:58 GMT
Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From Rick Reed TSE <rickreed#tseng.co.uk> to sdlnews -----
Elangovan Angannan at sdlelango#yahoo.com wrote on 08/10/2001 14:48:
> What is the use of quoted operation name ["not", "or",
> "and",...]? Where it is used?
Dear Elangovan and others,
The infix operators ["not", "or", "and",...] can be used for user defined
operators in user defined data types as well as for the operators defined in
Annex D of Z.100.
In this case, the signature of the "and" infix operator in data type X would
be introduced by:
OPERATORS
...
"and" ( X, X ) -> X;
When the operator is used in a expression it can be used as follows:
DCL x1, x2, x3 X;
...
x3 := x1 and x2;
This statement is exactly equivalent to the statement:
x3 := "and"(x1,x2);
The order of precedence of infix operators is defined by the SDL expression
syntax.
-- Rick Reed - rickreed#tseng.co.uk Tel:+44 1455 55 96 55 Fax:+44 1455 55 96 58 Mob.:+44 7970 50 96 50--End text from Rick Reed TSE <rickreed#tseng.co.uk> to sdlnews --- For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>
This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT