- owner = new_type_class (id_from_str (CLASSNAME, strlen(CLASSNAME)));
- method = new_type_method (id_from_str("main", 4), 1, 1);
+ owner = new_type_class (new_id_from_chars (CLASSNAME, strlen(CLASSNAME)));
+ method = new_type_method (new_id_from_chars("main", 4), 1, 1);