rfc:function_autoloading

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:function_autoloading [2015/09/03 04:31] – Re draft ircmaxellrfc:function_autoloading [2015/09/03 04:51] – Add streams ircmaxell
Line 11: Line 11:
 PHP presently offers the ability to import class-like structures (classes, interfaces and traits) via a callback (or series of them) that can be registered. This lets a developer "catch" the fact that a class isn't present, and gives them a chance to load it. This is used to great effect in the PHP community. PHP presently offers the ability to import class-like structures (classes, interfaces and traits) via a callback (or series of them) that can be registered. This lets a developer "catch" the fact that a class isn't present, and gives them a chance to load it. This is used to great effect in the PHP community.
  
-Presently, other types of symbols tables are not autoloadable. This RFC proposes a new unified autoloading mechanism to unify autoloading efforts across all three symbol tables (class, function and constant).+Presently, other types of symbols tables are not autoloadable. This RFC proposes a new unified autoloading mechanism to unify autoloading efforts across all three symbol tables (class, function, stream wrapper and constant).
  
 ===== Proposal ===== ===== Proposal =====
Line 24: Line 24:
   * //php\AUTOLOAD_FUNCTION => 2// - Represents Function autoloading   * //php\AUTOLOAD_FUNCTION => 2// - Represents Function autoloading
   * //php\AUTOLOAD_CONSTANT => 3// - Represents Constant autoloading   * //php\AUTOLOAD_CONSTANT => 3// - Represents Constant autoloading
 +  * //php\AUTOLOAD_STREAM = 4// - Represents Stream autoloading
  
 ==== Userland Functions ==== ==== Userland Functions ====
rfc/function_autoloading.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1