Update Doku aus Driversourcen
Change-Id: I455f0813b970151089b3dc1b8d9407eea323cdd1
diff --git a/doc/concepts/overloading b/doc/concepts/overloading
index 06209e9..70c3544 100644
--- a/doc/concepts/overloading
+++ b/doc/concepts/overloading
@@ -6,10 +6,12 @@
A function is called 'overloaded' if it is defined more than once
in an object. This can happen if the object inherits other objects
which have defined a function with the same name.
+
Usually the overloading is wanted and intended by the inheriting
object to change the behaviour of the function it overloads.
To call the overloaded functions from the overloading object the
::-operator is used.
+
From outside the object only one of the functions can be called
via call_other() or the like; this will be the topmost of all
overloaded functions.
@@ -37,12 +39,12 @@
foo() {
a::foo();
- b::foo();
- write("C");
- }
+ b::foo();
+ write("C");
+ }
- To call "players/alfe/c"->foo() will now result in the output of
- ABC.
+ To call "players/alfe/c"->foo() will now result in the output of
+ ABC.
SEE ALSO
modifiers(LPC), inheritance(C), functions(LPC)