Category:proto

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(This is now linked to in jit.util.funck)
m (Link to proto examples)
 
Line 4: Line 4:
  
 
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.
 
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.
 +
 +
See {{LibraryFunction|jit|util.funck}} for an example.

Latest revision as of 12:18, 11 December 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.

See jit.util.funck for an example.

This category currently contains no pages or media.

Personal tools
Navigation