Hello everyone, I have a strong doubt that I need to remove. On the Godot documentation, on the Reference page of "Object" it says that Object is the base class(or as I thought of it: "Superclass")of all not-built-in types. Among the subclasses of Object is "Node" which as it says in the description of Object, is one of the not-built-in types. The strange thing is that in searching I always found a Godot link saying that "Node" is a built-in type and not a "not built-in type." I don't understand if this is a contradiction or what? Can someone please explain?
Built-in type and not
- Edited
I think that "built-in type" refers to types that are built into GDScript, and not to classes such as Node that are defined separately. But "built-in type" might also refer to types that are included in the Godot engine, as opposed to custom types (classes) that you add. The term is a little ambiguous, but that hasn't caused me any problems in using Godot.
DaveTheCoder But by built-in types in GDscript, are you referring to the basic types that are in Godot Basics(documentation)? More specifically to the "Basic built-in types"? And then you said that "built-in types" could refer to the Types included in the engine, I know that the types included in the engine but at the same time separate are the subclasses of "Object". Correct me if I am wrong
The term "built-in" is ambiguous. Its meaning depends on the context. Can you provide a link to the specific documentation that needs clarification?
- Edited
DaveTheCoder https://docs.godotengine.org/en/stable/classes/class_object.html
This is the other link I saw:
- Edited
In the first article, "built-in" refers to types such as int, float, bool, Array, Dictionary, etc.
In the second article, "built-in" refers to provided types, as opposed to types that you define.
Ideally, it would be better if the documentation avoided using "built-in" to mean different things. Maybe a github issue should be submitted to request that.
DaveTheCoder Which article are you referring to first or second?
- Edited
It can depend on what you are talking about, but typically built-in types are things that come with the language (e.g. C++) such as Integers, Floating-Point Numbers, Strings, etc. As you see on the class page for String it is called a built-in type and does not inherit from anything.
https://docs.godotengine.org/en/stable/classes/class_string.html
Byl Which article are you referring to first or second?
I edited my post to clarify.