Re: [php6] OOP resources

From: Date: Mon, 03 Mar 2014 17:57:35 +0000
Subject: Re: [php6] OOP resources
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-72909@lists.php.net to get a copy of this message
On 21.02.2014, at 21:07, Marc Bennewitz <php@marc-bennewitz.de> wrote: > here another idea for PHP 6 the simply means removing the datatype > "resource" because and convert current resources into classes/objects > as it's already done with GMP. > > Because resources are simply a pointer to a somewhere described data > structure - resources are the exactly the use case for objects. Inspired by this topic, I took a stab at refactoring the hash context resource into an object: https://github.com/php/php-src/pull/611 The most interesting thing to discuss, is probably how to describe closing a resource with objects. Best regards Rouven

« previous php.internals (#72909) next »