Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Operators and operations15.6, 15.7

Operators and operations15.6, 15.7 16 Jan 2003 18:57 #6339

Hi,

15.6:
"The predefined shift operators perform the shift left (<<) and shift right (>>) operations. Their left-hand operand shall be of type bitstring, hexstring or octetstring. Their right-hand operand shall be of type integer. The result type of these operators shall be the same as that of the left operand."

15.7:
"The predefined rotate operators perform the rotate left (<@) and rotate right (@>) operators. Their left-hand operand shall be of type bitstring, hexstring, octetstring, charstring or universal charstring. Their right-hand operand shall be of type integer. The result type of these operators shall be the same as that of the left operand.'

I think about change in three places from 'operators' to 'operations', mainly because description of programming language should be as correct as it is possible.

BR,
Mariusz Kupiec
The administrator has disabled public write access.

Operators and operations15.6, 15.7 17 Jan 2003 14:02 #6347

In einer eMail vom 1/17/03 2:32:47 PM W. Europe Standard Time schreibt
This email address is being protected from spambots. You need JavaScript enabled to view it.:

Hi again,


> Hi,
>
> 15.6:
> "The predefined shift operators perform the shift left (<<) and shift right
> (>>) operations. Their left-hand operand shall be of type bitstring,
> hexstring or octetstring. Their right-hand operand shall be of type integer
> . The result type of these operators shall be the same as that of the left
> operand."

The above description is correct in my mind. No changes ae needed.


>
> 15.7:
> "The predefined rotate operators perform the rotate left (<@) and rotate
> right (@>) operators. Their left-hand operand shall be of type bitstring,
> hexstring, octetstring, charstring or universal charstring. Their
> right-hand operand shall be of type integer. The result type of these
> operators shall be the same as that of the left operand.'
>

In the above the following should be changed to :

"The predefined rotate operators perform the rotate left (<@) and rotate
right (@>) _operations_. Their left-hand operand shall be of type bitstring,
hexstring, octetstring, charstring or universal charstring. Their right-hand
operand shall be of type integer. The result type of these operators shall be
the same as that of the left operand.'

One change is obvious (_operations_). The use of the word operator instead of
the word
operation in the last sentence, for both 15.6 and 15.7 is debatable.

-An operation is performed using operands and an operator.

Maybe the last sentence of 15.6 and 15.7 could be changed to:

-The result type of performing the (shift | rotate) operation shall be the
same as that of the left
operand.


>
> I think about change in three places from 'operators' to 'operations',
> mainly because description of programming language should be as correct as
> it is possible.
>


Cheers,


Claude.
Claude Desroches e-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.
Technical Architect This email address is being protected from spambots. You need JavaScript enabled to view it.
Strategic Test Solutions Ltd.
City Gate East.
Toll House Hill,
Nottingham.
NG1 5FS.

Tel: +44 115 958 6600
Fax: +44 115 958 6633
Mob: +44 796 648 2165
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin