/[eiffelstudio]/branches/eth/eve/Src/Eiffel/API/evaluated_type/none_a.e
ViewVC logotype

Contents of /branches/eth/eve/Src/Eiffel/API/evaluated_type/none_a.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10818 - (show annotations)
Thu Jul 30 20:33:23 1998 UTC (21 years, 5 months ago) by manus
Original Path: trunk/Src/bench/Eiffel/API/evaluated_type/none_a.e
File size: 1612 byte(s)
Add the generic conformance to the compiler

1 indexing
2 description: "Actual type for integer type."
3 date: "$Date$"
4 revision: "$Revision $"
5
6 class
7 NONE_A
8
9 inherit
10 TYPE_A
11 redefine
12 is_none, dump, type_i, same_as,
13 internal_conform_to, append_to,
14 storage_info, storage_info_with_name, associated_eclass
15 end
16
17 feature -- Comparison
18
19 is_equivalent (other: like Current): BOOLEAN is
20 -- Is `other' equivalent to the current object ?
21 do
22 Result := True
23 end
24
25 feature -- Properties
26
27 is_none: BOOLEAN is True
28 -- Is the current type a none type ?
29
30 feature -- Access
31
32 associated_eclass: E_CLASS is
33 -- No associated class
34 do
35 end
36
37 same_as (other: TYPE_A): BOOLEAN is
38 -- Is the current type the same as `other' ?
39 do
40 Result := other.is_none
41 end
42
43 feature -- Output
44
45 dump: STRING is "NONE"
46 -- Dumped trace
47
48 append_to (st: STRUCTURED_TEXT) is
49 do
50 st.add_string ("NONE")
51 end
52
53 feature {COMPILER_EXPORTER}
54
55 create_info: CREATE_TYPE is
56 -- Byte code information for entity type creation
57 do
58 !! Result
59 Result.set_type (type_i)
60 end
61
62 type_i: NONE_I is
63 -- Void C type
64 once
65 !!Result
66 end
67
68 associated_class: CLASS_C is
69 require else
70 True
71 do
72 -- No associated class
73 end
74
75 internal_conform_to (other: TYPE_A in_generics: BOOLEAN): BOOLEAN is
76 -- Does `other' conform to Current ?
77 do
78 Result := True
79 end
80
81 storage_info, storage_info_with_name (classc: CLASS_C): S_CLASS_TYPE_INFO is
82 -- Storage info for Current type in class `classc'
83 -- and store the name of the class for Current
84 do
85 !! Result.make ("NONE", 0)
86 end
87
88 end -- class NONE_A

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23