Object Oriented scripting shell – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 2: Line 2:
The methods defined within a class can't use the values of an instance of the class.
The methods defined within a class can't use the values of an instance of the class.
For me, there is no advantage against using cfgFunctions.
For me, there is no advantage against using cfgFunctions.
:yeah, seems like all functions are "static" and you would need to pass the class instance as parameter, which is not really OO --[[User:T D|T_D]] 21:37, 1 December 2010 (CET)

Revision as of 22:37, 1 December 2010

 _return = [player, 1, "Hello"] call BIS_OO_MyClass_myMethod;

The methods defined within a class can't use the values of an instance of the class. For me, there is no advantage against using cfgFunctions.

yeah, seems like all functions are "static" and you would need to pass the class instance as parameter, which is not really OO --T_D 21:37, 1 December 2010 (CET)