From 9e331a0ad63612aa47c6fee7b54b507a59b8603b Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Fri, 27 Mar 2015 02:33:52 +0100 Subject: [PATCH] Add docs on funcoverride. --- index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.html b/index.html index 49db90b..94d7052 100644 --- a/index.html +++ b/index.html @@ -46,6 +46,7 @@ pre code { padding: 0px; }
  • Allow multiple labels with the same name in the same function.
  • switch() statements, for compatibility with Firestorm.
  • Lazy list syntax (identifier[index]), for compatibility with Firestorm.
  • +
  • Allow duplicate function definitions, for compatibility with Firestorm.
  • As of version 0.1.3alpha, it can invoke the preprocessor on its own, providing defaults for the GNU C preprocessor cpp and for mcpp).
  • @@ -280,6 +281,12 @@ llOwnerSay("Program version " STRINGIFY(VERSION)

    That is a requirement of the underlying llList2List function used in this case.

    +

    Allow duplicate function definitions

    + +

    If two or more functions with the same name are defined, the latest definition takes effect. This is done for compatibility with Firestorm; apparently that "feature" is used by some people.

    + +

    Note that Firestorm also allows calling undefined functions, as long as the function that has the calls is optimized out. That feature is not implemented by this optimizer, as it would complicate expression parsing a lot. It's also considered a misfeature; writing code that relies on it is discouraged.

    +

    Optimizations