# Common things for NIT compilation and C generation
package primitive_info
-#FIXME Split this package into 2: one in metamodel and one in compiling
+#FIXME Split this module into 2: one in metamodel and one in compiling
import metamodel
# Return the primitive information of the class.
# Return null if the class is not primitive
- # FIXME: Only here since there is no universal type yet
fun primitive_info: nullable PrimitiveInfo
do
if _primitive_info_b == true then return _primitive_info_cache
var i = ctypes.iterator
while i.is_ok do
var n = i.key
- if module.has_global_class_named(n) then
- var c = module.class_by_name(n)
+ if mmmodule.has_global_class_named(n) then
+ var c = mmmodule.class_by_name(n)
if cshe < c then
_primitive_info_cache = i.item
_primitive_info_b = true