[PHP-DEV] RE: Bug #2965

2002-11-28 Thread Dan Rossi
i'd try use chr($i) or something like that and start @ A value

-Original Message-
From: John Coggeshall [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 29, 2002 11:00 AM
To: 'electroteque'; [EMAIL PROTECTED]
Subject: Bug #2965



This bug was changed to a documentation problem, and I'm a bit confused
as to what exactly the issue is

For($i = 'A'; $i = 'Z' $i++)  echo $i;

I'm assuming this *should* echo the A-Z alphabet (which it doesn't)..
But, since it was changed to a documentation problem -- is the current
form intended behavior?

John


-Original Message-
From: electroteque [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, November 28, 2002 6:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] Zend Engine 2


Hello i was wondering when this is becoming available with the 
possibilities of private and public class features ?



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




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




RE: [PHP-DEV] RE: Bug #2965

2002-11-28 Thread John Coggeshall

That's not the issue... In C, the behavior is to actually print the
alphabet A-Z... It looks like our implementation is messed up, but the
bug report is a bit misleading as to if I should fix the documentation
to say you CAN'T do this, or fix the code so you can :)

John


-Original Message-
From: Dan Rossi [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, November 28, 2002 7:06 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-DEV] RE: Bug #2965


i'd try use chr($i) or something like that and start @ A value

-Original Message-
From: John Coggeshall [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 29, 2002 11:00 AM
To: 'electroteque'; [EMAIL PROTECTED]
Subject: Bug #2965



This bug was changed to a documentation problem, and I'm a bit 
confused as to what exactly the issue is

For($i = 'A'; $i = 'Z' $i++)  echo $i;

I'm assuming this *should* echo the A-Z alphabet (which it 
doesn't).. But, since it was changed to a documentation 
problem -- is the current form intended behavior?

John


-Original Message-
From: electroteque [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 6:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] Zend Engine 2


Hello i was wondering when this is becoming available with the
possibilities of private and public class features ?



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




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




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




RE: [PHP-DEV] RE: Bug #2965

2002-11-28 Thread Rick Widmer
At 07:09 PM 11/28/02 -0500, John Coggeshall wrote:


That's not the issue... In C, the behavior is to actually print the
alphabet A-Z... It looks like our implementation is messed up, but the
bug report is a bit misleading as to if I should fix the documentation
to say you CAN'T do this, or fix the code so you can :)


May I suggest the best choice is to fix the code.  The current action is 
bizarre!

A to Z followed by AA - AZ, BA - BZ ... up to YA-YZ, then if finally 
stops.  A lower case range acts the same way with lower case characters.

If that isn't bad enough for you, try the range from A to z.  After 30 
seconds it got up to AUHXT.

Rick


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



RE: [PHP-DEV] RE: Bug #2965

2002-11-28 Thread John Coggeshall
I'm conflicted on this one.  On the one hand you've got PHP 
somewhat at fault for treating letters as special characters 
(such that 'Z'+1 == 'AA') rather than as their ordinal 
equivalents (such that 'Z'+1 == ord('Z')+1 == 91 == ord('[') 
== '[' ) which IMO is an ugly thing.

I personally like the C-consistency here, at least on this issue.

On the other hand, while it's inconsistent with C, it's 
perfectly in line with Perl and it's a performance trend which 
is presumably being relied upon by some.  I can certainly see 
where such behavior (heretofore unexpected by me) would come 
in handy in fact.

Where possibly would this behavior of 'Z'+1 = 'AA' be useful?

Against my better judgement, I'm voting to leave the 
interpreter as is and make notes in the documentation to 
clarify behavior.

Given the choice, I'm personally for having single-characters treated as
ordinals when appropiate.

John


-Pollita






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