autoload is a language convention which allows missing classes or method dependencies to be loaded on-demand.
autoload is implemented differently among languages which include it:
- Perl's
AUTOLOAD
allows you to dynamically interpret method calls. - PHP's
__autoload
loads classes. To handle missing methods, the __call() magic method may be used. - Ruby's
autoload
command loads modules.