Re: Function autoloading

From: Date: Sat, 31 Aug 2013 23:27:40 +0000
Subject: Re: Function autoloading
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Sun, Sep 1, 2013 at 12:36 AM, Vartolomei Nicolae
<[email protected]>wrote:

> > personally Ithink it would be nice if we could provide a way for
> const/function autoloading.
> So you will create files for constants? One file with a single line
> defining a constant?
>
> Did I understood something wrong?
>
>
yes, you did.
I never mentioned that I would use this feature, nor that I would put one
constant in a file if I would.
I suppose those who use it would use namespaces(either native namespaces or
some prefix/suffix in the name which their autoloader understands) to group
the functions/constants and when a const/func is referenced from a
namespace include the file which contains all of the funcs/consts from that
namespace.

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu


Thread (72 messages)

« previous php.internals (#68800) next »