Am 01.07.2015 um 18:32 schrieb François Laupretre franc...@php.net:
De : Bob Weinand [mailto:bobw...@hotmail.com]
Interesting idea (from the concept). I even could get on board with this; I'm
just not that sure about the performance impact. (alignment of refcount to
base address etc.)
Am 30.06.2015 um 20:16 schrieb François Laupretre franc...@php.net:
De : morrison.l...@gmail.com [mailto:morrison.l...@gmail.com] De la part
Just to time in with my $0.02: I feel that using macros as an
abstraction in this case is bad practice. I believe that in *most*
cases macros as an
De : Bob Weinand [mailto:bobw...@hotmail.com]
Interesting idea (from the concept). I even could get on board with this; I'm
just not that sure about the performance impact. (alignment of refcount to
base address etc.)
zend_string *s;
s = zend_string_alloc(256, 0);
De : Bob Weinand [mailto:bobw...@hotmail.com]
Precisely. Instead of tight coupling to the structure, we now couple to the
macro… and it's not like the macro will be left untouched once we change the
underlying structure.
There are different levels of encapsulation : 1st level can be seen as
On Tue, Jun 30, 2015 at 8:15 AM, Bob Weinand bobw...@hotmail.com wrote:
Am 30.06.2015 um 12:53 schrieb François Laupretre franc...@php.net:
De : Bob Weinand [mailto:bobw...@hotmail.com]
Precisely. Instead of tight coupling to the structure, we now couple to the
macro… and it's not like the
Am 30.06.2015 um 12:53 schrieb François Laupretre franc...@php.net:
De : Bob Weinand [mailto:bobw...@hotmail.com]
Precisely. Instead of tight coupling to the structure, we now couple to the
macro… and it's not like the macro will be left untouched once we change the
underlying structure.
De : morrison.l...@gmail.com [mailto:morrison.l...@gmail.com] De la part
Just to time in with my $0.02: I feel that using macros as an
abstraction in this case is bad practice. I believe that in *most*
cases macros as an abstraction is a bad practice. Furthermore, there
isn't any reason
Am 29.06.2015 um 15:46 schrieb Dmitry Stogov dmi...@zend.com:
Committed except of ZVAL_STR_INC/DEC_LEN() and some other unused macros.
Thanks. Dmitry.
On Mon, Jun 29, 2015 at 4:23 PM, François Laupretre franc...@php.net
wrote:
Hi,
OK, I didn’t understand Dmitry’s comment on
Hi Bob,
-Original Message-
From: Bob Weinand [mailto:bobw...@hotmail.com]
Sent: Monday, June 29, 2015 6:44 PM
To: Dmitry Stogov
Cc: francois; Anatol Belski; Anatol Belski; PHP Internals
Subject: Re: [PHP-DEV] Improved zend_string API
Hey, looks like I'm a bit late to the party
Stogov
Cc: francois; Anatol Belski; Anatol Belski; PHP Internals
Subject: Re: [PHP-DEV] Improved zend_string API
Hey, looks like I'm a bit late to the party, but I'd like to object against
the
accessor macros on zend_string.
What does it help to replace very nice -val, -len etc. with macros
Hey Dmitry,
Am 29.06.2015 um 15:46 schrieb Dmitry Stogov dmi...@zend.com:
Committed except of ZVAL_STR_INC/DEC_LEN() and some other unused macros.
Thanks. Dmitry.
I see you changed the ZSTR_* macros to be pure aliases of the equivalent
structure members.
May I now honestly ask where the
De : Aaron Piotrowski [mailto:aa...@icicle.io]
Envoyé : mardi 30 juin 2015 04:16
À : Bob Weinand; Anatol Belski
Cc : internals@lists.php.net
Objet : Re: [PHP-DEV] Improved zend_string API
On Jun 29, 2015, at 7:37 PM, Bob Weinand bobw...@hotmail.com wrote:
Hey Anatol,
Am
: [PHP-DEV] Improved zend_string API
Hey, looks like I'm a bit late to the party, but I'd like to object against
the
accessor macros on zend_string.
What does it help to replace very nice -val, -len etc. with macros?
ZSTR_VAL(str)[ZSTR_LEN(str)] = 0; or str-val[str-len] = 0
Hi,
-Message d'origine-
De : Bob Weinand [mailto:bobw...@hotmail.com]
Hey, looks like I'm a bit late to the party, but I'd like to object against
the
accessor macros on zend_string.
What does it help to replace very nice -val, -len etc. with macros?
If you find it 'very nice',
On Jun 30, 2015 9:38 AM, François Laupretre franc...@php.net wrote:
Hi,
-Message d'origine-
De : Bob Weinand [mailto:bobw...@hotmail.com]
Hey, looks like I'm a bit late to the party, but I'd like to object
against the
accessor macros on zend_string.
What does it help to
De : Bob Weinand [mailto:bobw...@hotmail.com]
I see you changed the ZSTR_* macros to be pure aliases of the equivalent
structure members.
May I now honestly ask where the benefit of those macros is?
ZSTR_VAL(str) instead of str-val
ZSTR_H(str) instead of str-h
ZSTR_LEN(str) instead of
Am 30.06.2015 um 04:37 schrieb François Laupretre franc...@php.net:
Hi,
-Message d'origine-
De : Bob Weinand [mailto:bobw...@hotmail.com]
Hey, looks like I'm a bit late to the party, but I'd like to object against
the
accessor macros on zend_string.
What does it help to
Am 30.06.2015 um 05:44 schrieb François Laupretre franc...@php.net:
De : Bob Weinand [mailto:bobw...@hotmail.com]
I see you changed the ZSTR_* macros to be pure aliases of the equivalent
structure members.
May I now honestly ask where the benefit of those macros is?
ZSTR_VAL(str)
18 matches
Mail list logo