Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14789 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8814 invoked by uid 1010); 10 Feb 2005 12:33:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8799 invoked from network); 10 Feb 2005 12:33:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2005 12:33:54 -0000 X-Host-Fingerprint: 212.204.192.51 jdi.jdimedia.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([212.204.192.51:49616] helo=jdi.jdimedia.nl) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id 0F/96-10493-0B45B024 for ; Thu, 10 Feb 2005 07:33:53 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j1ACXo2X021192 for ; Thu, 10 Feb 2005 13:33:50 +0100 Received: from jdi.jdimedia.nl ([127.0.0.1]) by localhost (jdi.jdimedia.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16208-09-2 for ; Thu, 10 Feb 2005 13:33:50 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j1ACXQ5V021044; Thu, 10 Feb 2005 13:33:27 +0100 Date: Thu, 10 Feb 2005 13:33:26 +0100 (CET) X-X-Sender: derick@localhost To: Ante Drnasin cc: internals@lists.php.net In-Reply-To: <20050210080546.52065.qmail@lists.php.net> Message-ID: References: <20050207141916.21665.qmail@lists.php.net> <1062509740.20050209103014@marcus-boerger.de> <20050209110525.1936.qmail@lists.php.net> <20050209164713.GC25360@gravitonic.com> <20050210080546.52065.qmail@lists.php.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] Autoboxing in php 5.1 From: derick@php.net (Derick Rethans) On Thu, 10 Feb 2005, Ante Drnasin wrote: > 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... But there is no good reason why we should add this. > > 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); > } function add($a, $b) { return (float)($a + $b); } nothing new to add here... Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org