Changed formatting a bit.
Made it compile with SE 1.2r7
This commit is contained in:
@@ -24,18 +24,18 @@ create
|
|||||||
|
|
||||||
feature -- initialization
|
feature -- initialization
|
||||||
|
|
||||||
make_integer (argument: INTEGER) is
|
make_integer (an_argument: INTEGER) is
|
||||||
-- Initialize an instance of JSON_NUMBER as INTEGER
|
-- Initialize an instance of JSON_NUMBER as INTEGER
|
||||||
do
|
do
|
||||||
item:= argument.out
|
item := an_argument.out
|
||||||
numeric_type:= INTEGER_TYPE
|
numeric_type := INTEGER_TYPE
|
||||||
end
|
end
|
||||||
|
|
||||||
make_real (argument: REAL) is
|
make_real (an_argument: REAL) is
|
||||||
-- Initialize an instance of JSON_NUMBER as REAL
|
-- Initialize an instance of JSON_NUMBER as REAL
|
||||||
do
|
do
|
||||||
item:= argument.out
|
item := an_argument.out
|
||||||
numeric_type:= REAL_TYPE
|
numeric_type := REAL_TYPE
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ feature -- Status
|
|||||||
-- Is `other' attached to an object of the same type
|
-- Is `other' attached to an object of the same type
|
||||||
-- as current object and identical to it?
|
-- as current object and identical to it?
|
||||||
do
|
do
|
||||||
Result:=item.is_equal (other.item)
|
Result := item.is_equal (other.item)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ feature -- Status
|
|||||||
feature -- Implementation
|
feature -- Implementation
|
||||||
|
|
||||||
INTEGER_TYPE: INTEGER is 1
|
INTEGER_TYPE: INTEGER is 1
|
||||||
REAL_TYPE:INTEGER is 2
|
REAL_TYPE: INTEGER is 2
|
||||||
numeric_type: INTEGER
|
numeric_type: INTEGER
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user