Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14782 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52083 invoked by uid 1010); 10 Feb 2005 08:05:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52068 invoked by uid 1007); 10 Feb 2005 08:05:46 -0000 Message-ID: <20050210080546.52065.qmail@lists.php.net> To: internals@lists.php.net Date: Thu, 10 Feb 2005 09:08:28 +0100 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <20050207141916.21665.qmail@lists.php.net> <1062509740.20050209103014@marcus-boerger.de> <20050209110525.1936.qmail@lists.php.net> <20050209164713.GC25360@gravitonic.com> In-Reply-To: <20050209164713.GC25360@gravitonic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 193.77.101.32 Subject: Re: [PHP-DEV] Autoboxing in php 5.1 From: ante.dfg@moj.net (Ante Drnasin) Andrei Zmievski wrote: > On Wed, 09 Feb 2005, Ante Drnasin wrote: > >>Hi Marcus and thanx for the explanation.... >> >>And I agree that PHP is very loose which is his strong part but >>exactly because of that I think it would be nice if the end-user can have >>the ability to work with primitives like they were objects... > > > Why? > > - Andrei Why not? Because it would be a great asset to the new OOP model in PHP 5.... Because the new OOP model is great and I don't think it shouldn't stop there.... Because it would be great if the choice is left to the end user... We already have OOP freaks (including this one) and I just love the idea to have something like function Add($a, $b) { return new Float($a+$b); } print(Add(new Integer(5), new Float(5.7))); just my $.02