Author:admin

Date:2014-06-04T21:36:00.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1375 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
jfiat
2014-06-04 21:36:00 +00:00
parent 560403716a
commit d42e808ca1
4 changed files with 96 additions and 84 deletions

View File

@@ -3,7 +3,9 @@
[[Property:weight|0]]
[[Property:uuid|d98b7fb8-37a1-05b3-a58f-baacefd5dce6]]
__NOTOC__
:{|
=Description=
Assigning a variable to itself is a meaningless instruction due to a typing error. Most probably, one of the two variable names was misspelled. One example among many others: the programmer wanted to assign a local variable to a class attribute and used one of the variable names twice.
:{| class="doctable"
|-
| '''Scope'''
| Instruction
@@ -21,9 +23,6 @@ __NOTOC__
| 70
|}
=Description=
Assigning a variable to itself is a meaningless instruction due to a typing error. Most probably, one of the two variable names was misspelled. One example among many others: the programmer wanted to assign a local variable to a class attribute and used one of the variable names twice.
=Example=
<e>a := a
</e>

View File

@@ -3,7 +3,12 @@
[[Property:weight|0]]
[[Property:uuid|02a649b3-0e4e-6fdf-388d-c411a06fc787]]
__NOTOC__
:{| class="wikitable"
=Description=
An expression comparing a variable to itself always evaluates to the same boolean value. The comparison is thus redundant. In an Until expression it may lead to non-termination. Usually it is a typing error.
:{| class="doctable"
|-
! Property
! Value
|-
| '''Scope'''
| Instruction
@@ -21,9 +26,6 @@ __NOTOC__
| 70
|}
=Description=
An expression comparing a variable to itself always evaluates to the same boolean value. The comparison is thus redundant. In an Until expression it may lead to non-termination. Usually it is a typing error.
=Example=
<e>if a >= a then
...

View File

@@ -2,5 +2,8 @@
[[Property:link_title|Rules]]
[[Property:weight|15]]
[[Property:uuid|109ca62a-212d-8a85-eea8-ddf0f89177a1]]
For each rules, you will find an English description of the purpose of the rule, followed by a table providing the following information:
* scope:
* status: Enabled/Disabled by default
*