[PHP-DEV] suggestions for ze2

2003-01-14 Thread Stephan Seidt
Hi,

I've got some suggestions for zendengine2 (hopefully not too late).
What about an identificator for destrucotrs in a class like in c++?
I mean something like this :

?php

class Foo
{
function Foo
{
// Constructor
}

function ~Foo
{
// Destructor
}
}


And an idea about cloning of objects..
What about an operator for doing that ?

$cloned_object = %$object;


Last thing would be a possibility for overloading operators.
For example if you have two instances of a multi-dimensional
position class :

$vector1 = new Pos(12,24,42);
$vector2 = new Pos(53,23,15);

$vector1 += $vector2;

In the class definition that could look like :

class Pos
{
operator +($left)
{
// Error handling for equal sice of public dimensions array

foreach($left-dimensions as $id = $value)
$this-dimensions[$id] += $value;
}
}

Where there already discussions about these things?
I think that would make the sourcecode shorter,
more understandable and also looking nicer ;)

I now that the first two suggestions are just taken
out of another programming language called c++,
but I think that these are usefull concepts.

bye

--
IPv6 + TCPA + wrecked Palladium server = NO COFFE!


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] suggestions for ze2

2003-01-14 Thread Stephan Seidt
Hmm forget the first one, i just finished ZEND_CHANGES file..
(and sorry for bad english sometimes)

Stephan Seidt wrote:

Hi,

I've got some suggestions for zendengine2 (hopefully not too late).
What about an identificator for destrucotrs in a class like in c++?
I mean something like this :

?php

class Foo
{
function Foo
{
// Constructor
}

function ~Foo
{
// Destructor
}
}


And an idea about cloning of objects..
What about an operator for doing that ?

$cloned_object = %$object;


Last thing would be a possibility for overloading operators.
For example if you have two instances of a multi-dimensional
position class :

$vector1 = new Pos(12,24,42);
$vector2 = new Pos(53,23,15);

$vector1 += $vector2;

In the class definition that could look like :

class Pos
{
operator +($left)
{
// Error handling for equal sice of public dimensions array

foreach($left-dimensions as $id = $value)
$this-dimensions[$id] += $value;
}
}

Where there already discussions about these things?
I think that would make the sourcecode shorter,
more understandable and also looking nicer ;)

I now that the first two suggestions are just taken
out of another programming language called c++,
but I think that these are usefull concepts.

bye




--
IPv6 + TCPA + wrecked Palladium server = NO COFFE!


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] suggestions for ze2

2003-01-14 Thread Stephan Seidt
Hm :( Ok, was a try ;)

Derick Rethans wrote:

Hey,

you're passing dangerous grounds with this email :), and most of these 
points were brought up before.

Hehe how did I know that ;)
Then let's just stop this discussion now :(
Don't want to end in php 2003 summary as mail waster ;)



On Tue, 14 Jan 2003, Stephan Seidt wrote:



I've got some suggestions for zendengine2 (hopefully not too late).
What about an identificator for destrucotrs in a class like in c++?
I mean something like this :

?php

class Foo
{
function Foo
{
// Constructor
}

function ~Foo
{
// Destructor
}
}



We decided to go with __construct and __destruct instead as those make 
it much easier to rename classes for example.


And an idea about cloning of objects..
What about an operator for doing that ?

$cloned_object = %$object;



$clone = $object-__clone(); already works.



Last thing would be a possibility for overloading operators.



Not a chance :)



Where there already discussions about these things?
I think that would make the sourcecode shorter,
more understandable and also looking nicer ;)



Nicer is an objective statement, I would call it 'horrible' or 
'perlish'. An archive can be found on news.php.net (php.dev) or 
http://www.zend.com/lists/engine2/200301/maillist.html

regards,
Derick



--
IPv6 + TCPA + wrecked Palladium server = NO COFFE!


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] suggestions for ze2

2003-01-14 Thread Stephan Seidt
hmm..
What about an always available discussion documentation on php.net ?
something like whatever.php.net ? or does it already exist,
just hiding somewhere in the deep of the nameserver of php.net ;)

Derick Rethans wrote:

On Tue, 14 Jan 2003, Stephan Seidt wrote:



Hehe how did I know that ;)
Then let's just stop this discussion now :(
Don't want to end in php 2003 summary as mail waster ;)



hehe, don't be afraid :) Actually, I think it's a good idea to make a 
summary of all those discussions so that we can point people to that if 
they bring them up again... but nobody likes documenting things :)

Derick



--
IPv6 + TCPA + wrecked Palladium server = NO COFFE!


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] ZE2 dev snaps

2003-01-07 Thread Stephan Seidt
I tried that but buildconf wasnt happy about some .mk files then.
Ill try php4-ze2, thanks Edin.

Edin Kadribasic wrote:

If you checkout php4-ze2 all this will be done automagically for
you by the CVS server.

Edin

- Original Message -
From: Christian Stocker [EMAIL PROTECTED]
To: Stephan Seidt [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 10:00 AM
Subject: Re: [PHP-DEV] ZE2 dev snaps




On Mon, 6 Jan 2003, Stephan Seidt wrote:



At least ./buildconf with --ZendEngine2 did never work for me.


;)


I also did cvs co ZendEngine2 in php4 cvstree root.


Did you rename ZendEngine2 to Zend? (Or make a symbolic link,


after


renaming the old Zend directory to something else)

chregu



Mark J. Hershenson wrote:


Hi all,

I know there are Win32+ZE2 Package snapshots on


snaps.php.net, but I don't


believe I've read why there isn't a ZE2 source code snapshot


for everyone


else. Checking out the source with CVS may not be the world's


most difficult


practice, but automating that process likely isn't either. ;)

Is there a timeline for this, or is this being intentionally


kept off the


radar?

   --  mjh







--
nam...christian stockeradr...pflanzschulstr. 31, ch-8004


zurich


pho...+41 43 317 9984  www...http://phant.ch/chregu
mob...+41 76 561 8860  [EMAIL PROTECTED]
wor...+41  1 240 5670  gpg...0x5CE1DECB


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php










--
When ipv6 and tcpa are there.. When this Palladium server wrecks..
I won't be able to drink my coffe then!


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] ZE2 dev snaps

2003-01-06 Thread Stephan Seidt
At least ./buildconf with --ZendEngine2 did never work for me. ;)
I also did cvs co ZendEngine2 in php4 cvstree root.

Mark J. Hershenson wrote:

Hi all,

I know there are Win32+ZE2 Package snapshots on snaps.php.net, but I don't
believe I've read why there isn't a ZE2 source code snapshot for everyone
else. Checking out the source with CVS may not be the world's most difficult
practice, but automating that process likely isn't either. ;)

Is there a timeline for this, or is this being intentionally kept off the
radar?

--  mjh





--
When ipv6 and tcpa are there.. When this Palladium server wrecks..
I won't be able to drink my coffe then!


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] ZE2, Win32, and PHP5

2003-01-03 Thread Stephan Seidt
What about http://snaps.php.net ?
Latest php4 version with ZE2 is available there.

bye

John Coggeshall wrote:

Is anyone already building Win32 ZE2/PHP executables? I'm planning on
moving all of my development machines over to the ZE2 engine, but I
don't have MSVC handy for my Windows box.

On that note -- Someone before mentioned that we should start building
the source exclusively using ZE2 (for development) in preparation for
PHP5... I seem to think that perhaps is a good idea, and was wondering
if anyone else wanted to throw in their opinion on it.

John




--
I won't pay Bills'


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php