Godot Version
V4
Question
Does anyone know why I cannot extend built in classes like String or Array.
For example if I want to make my own inner class and extend from String, I would not be allowed to do it. Any alternatives if I want to do it.
Builtins like Array or String is not allowed
class Result extends Array:
var error_code: int=0
var error_description: String=""
func to_string2()->String:
return "somevalue"
This is allowed
class Result extends Object:
var error_code: int=0
var error_description: String=""
func to_string2()->String:
return "somevalue"