On 01/09/2013 04:19 PM, Johannes Schlüter wrote:
       * You are using resources, that is fine while we tend to use
         objects instead.

johannes

That's interesting. Is it better to use class objects instead of
resources? I'm implementing event extension wrapping libevent. It will
export around 7 resource types.

$base = event_base_new();
$event = event_new($base, ...);
event_add($event, 4.23);
etc.

Should I rather make classes? I also guess resources should be a bit faster. It is vital for event(libevent).

--
Regards,

Ruslan Osmanov

http://osmanov-dev-notes.blogspot.com | @ruslan_osmanov

--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to