Category:proto

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(typo)
(Fixed grammar)
Line 1: Line 1:
A proto is a function prototype.
+
A proto is a {{Type|function}} prototype that has been described in code but not initialized as a callable object.
  
It's a pretty much a {{Type|function}} that has been described in the code, but not created yet.
+
You can browse its bytecode and debug information with the jit.util functions, but it cannot be executed.
  
You can browse it's bytecode, all of it's debug information (with jit.util functions) but cannot execute it.
+
A proto has the same relationship with a function as classes have with its objects in OOP languages: a class can have multiple object instances, but objects are only of single class type.
 
+
In Lua, A {{Type|proto}} has the same relationship with a {{Type|function}} than Classes and it's Objects in any other OOP Language.
+

Revision as of 12:46, 12 November 2019

A proto is a function prototype that has been described in code but not initialized as a callable object.

You can browse its bytecode and debug information with the jit.util functions, but it cannot be executed.

A proto has the same relationship with a function as classes have with its objects in OOP languages: a class can have multiple object instances, but objects are only of single class type.

This category currently contains no pages or media.

Personal tools
Navigation