Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68800 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13083 invoked from network); 31 Aug 2013 23:27:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2013 23:27:44 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.176 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.176 mail-ie0-f176.google.com Received: from [209.85.223.176] ([209.85.223.176:48021] helo=mail-ie0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/0A-55332-FEB72225 for ; Sat, 31 Aug 2013 19:27:43 -0400 Received: by mail-ie0-f176.google.com with SMTP id s9so5733514iec.21 for ; Sat, 31 Aug 2013 16:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DGB9lpHDeJxnm9ND2hHIVbvLMFrx9WJNcl3hIS8tPcs=; b=xFOrsjMdcCRpdLU6bcLbcmgkAhF1NiaFqBi1Z4aoLXk2CM9IUjrnoPXBpe33Ke5ap6 dfU2WzESPoB0vVW+QvHO2UsFO/lq+oat+jj+dMSxdiXbq5Gqj1J3jkpt0QWr5tAd0YBd fPU2zTZLCUqng/MVPom3sV3hmmTCDyI/mpe2nOeG8NgiNmDl7NjENfYV6t63n6a/cYvL yyZkt9Od+lMUToFo5FQBGbYZx9sCblr6umSKwJi4Bor/jj6f1mB6rwsZcF9RXTkgs4JE PjUKbY372s/Pm7KXF7NEZ4KhWNECQC89XjI6bftDStCbU8a74iIzyo/RVrLTR/CaJW/G ptAA== MIME-Version: 1.0 X-Received: by 10.50.49.14 with SMTP id q14mr7418405ign.2.1377991660408; Sat, 31 Aug 2013 16:27:40 -0700 (PDT) Received: by 10.50.73.42 with HTTP; Sat, 31 Aug 2013 16:27:40 -0700 (PDT) In-Reply-To: References: <5220262A.6040702@sugarcrm.com> <5220437A.7050008@sugarcrm.com> <5220D212.3010101@sugarcrm.com> <61FCD6C4A31248078FEAD2BA73D7CD44@gmail.com> <7AF31CC1D1554454AC95AE758D23E92E@gmail.com> Date: Sun, 1 Sep 2013 01:27:40 +0200 Message-ID: To: Vartolomei Nicolae Cc: Sebastian Krebs , Nikita Popov , Stas Malyshev , Sara Golemon , Anthony Ferrara , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=e89a8f8395b36c450b04e546af36 Subject: Re: Function autoloading From: tyra3l@gmail.com (Ferenc Kovacs) --e89a8f8395b36c450b04e546af36 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Sep 1, 2013 at 12:36 AM, Vartolomei Nicolae 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. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --e89a8f8395b36c450b04e546af36--