Different languages have different 'package' model too.
For example Java, Ada and Python have packages, but they are too different.
BTW PHP's implementation is similar to Java packages and may be you are
right about renaming.
Thanks. Dmitry.
> -Original Message-
> From: Marcus Boerger [ma
Please.
This would be a big help to me, since I'm running these tests many,
many times a day as I develop the reference cycle collector.
On 7/24/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Tue, July 24, 2007 5:24 pm, Nuno Lopes wrote:
> Recently we have moved http://gcov.php.net to a new
On Mon, July 23, 2007 9:52 am, Brian Moon wrote:
> David Zülke wrote:
>> Oh yes, sure, that must be the main point about namespaces - I can
>> use
>> "::" instead of "_" as a delimiter! Yay!
>
> If all you are going to do is:
>
>
> include "MyClass.php";
> import MyClass;
>
> ?>
>
> Then why use a
On Tue, July 24, 2007 5:24 pm, Nuno Lopes wrote:
> Recently we have moved http://gcov.php.net to a new (and much faster)
> server. This allowed us to reduce the time to build all branches to
> "just" 2
> days (compared with almost one week that would take previously).
> However I'm still not happy
Well i'm not in favour of the importing of everything , i don't see
the need for it personally but others do, as you well know. I was just
trying to find a way to achieve everyone goals without sacrificing
speed or correctness for those who want it =)
Shame about the single file thing though. I'm
Is this something that you would consider for PHP ?
As far as I can tell from the list the two main considerations are not
pushing the decision to the executor and it being simple.
I can consider it as much as I want - and applications like Zend
Framework do work this way - but I also know not
But why not allow importing namespaced functions and constants into the
global namespace?
Because there's really no need to. Nothing wrong with
namespace::function().
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED] http://www.zend.com/
(408)253-8829 MSN: [EMAIL PROTECTED]
there is a __NAMESPACE__ constant, which is nice. Is there also a way to get
the "full name" of a function or class, so you can see where it came from?
Does import work for functions as well as classes?
Inside namespace it's __NAMESPACE__.'::'.$short_name (yes, '::name'
would be the same a
Do __autoload() and the SPL autoload stack get namespace information as well?
I didn't get that from the mail archive link posted yesterday.
Autoload should get full class names (with namespace).
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED] http://www.zend.com/
(408)253-88
On Tuesday 24 July 2007, Andrew Minerd wrote:
> On Tue, 24 Jul 2007 11:53:38 -0700
>
> [EMAIL PROTECTED] (Stanislav Malyshev) wrote:
> > > Where I can see a huge use for namespaces is plugin-based
> > > architectures. Each plugin is its own namespace. If you have a list
> > > of plugins, then you
My only concern is that you took a package model and named it namespaces.
Can we change the keyword from 'namespace' to 'package'?
Actually, it's neither, but it's more like namespaces than packages
IMHO. Though both terms are used in different languages in the roughly
same sense.
--
Stanis
Hello all,
and thanks Stas for the explanations.
Monday, July 2, 2007, 7:52:03 PM, you wrote:
>> We could add a counter that gets incremented for each object that is
>> created and associate that number with the object. Wouldn't that solve
>> the problem (if there is one)?
> It would solve
Hello Dmitry, all,
thanks for the namespaces.
My only concern is that you took a package model and named it namespaces.
Can we change the keyword from 'namespace' to 'package'?
Best regards,
Marcus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.p
Thank you !
On 7/24/07, Jani Taskinen <[EMAIL PROTECTED]> wrote:
Addded. They will be available if the underlying system defines them.
(And MSG_EOF is MSG_FIN on some systems..)
--Jani
On Sat, 2007-07-21 at 13:52 -0400, Nicolas Bérard-Nault wrote:
> Is there a reason the MSG_EOR and MSG_EOF
Hi,
Recently we have moved http://gcov.php.net to a new (and much faster)
server. This allowed us to reduce the time to build all branches to "just" 2
days (compared with almost one week that would take previously).
However I'm still not happy :P The server has 2x2 CPU cores and I would like
t
On Tue, 24 Jul 2007 11:53:38 -0700
[EMAIL PROTECTED] (Stanislav Malyshev) wrote:
> > Where I can see a huge use for namespaces is plugin-based architectures.
> > Each
> > plugin is its own namespace. If you have a list of plugins, then you have
> > a
> > list of namespaces and can iterate ov
Where I can see a huge use for namespaces is plugin-based architectures. Each
plugin is its own namespace. If you have a list of plugins, then you have a
list of namespaces and can iterate over that and invoke the same operation on
each plugin. That would require call_user_func() and call_use
A suggestion: allow anyone to reopen bugs marked "no feedback". Also
allow anyone to switch a bug from "feedback" to "open".
I believe this idea has a great deal of merit, unless it has proven to
be subject to abuse in the past or something.
I agree with "no feedback", but not necessarily with
Matthew Kavanagh wrote:
> Rasmus Lerdorf wrote:
>> Stanislav Malyshev wrote:
>>
>>> Compile-time resolution means you don't get performance penalty for
>>> namespaces when you are not using it, and have very low costs when you
>>> do use it. Allowing blanket imports means we don't know what "new
Hi Internals
I am working with Zoe Slattery and Raghbansh Kumar developing
new PHPT testcases for PHP and I would like to request the necesary
karma to
to commit new tests. I already have a CVS account (id=wharmby) so just
need the necessary extra karma to drop the test cases.
Regards
Rasmus Lerdorf wrote:
Stanislav Malyshev wrote:
Compile-time resolution means you don't get performance penalty for
namespaces when you are not using it, and have very low costs when you
do use it. Allowing blanket imports means we don't know what "new Foo()"
means until it is executed - mean
On 7/22/07, Pierre <[EMAIL PROTECTED]> wrote:
On 7/22/07, Gaetano Giunta <[EMAIL PROTECTED]> wrote:
> What I do is:
> - fetch list of extensions from pecl.php.net, getting the html page of
> cvs.php.net/pecl4win/ and scanning it
> - fetch the latest and greatest version of every extension from
It has been a while since our last release and the ChangeLog has
grown quite a bit, so I think it is time to start thinking about
5.2.4 release before the change set becomes unmanageable. To this
effect I'd like to start the release cycle with RC1 planned for
Thursday next week. Hopefully a
Addded. They will be available if the underlying system defines them.
(And MSG_EOF is MSG_FIN on some systems..)
--Jani
On Sat, 2007-07-21 at 13:52 -0400, Nicolas Bérard-Nault wrote:
> Is there a reason the MSG_EOR and MSG_EOF constants are not registered in
> PHP ? If not, could someone apply t
24 matches
Mail list logo