Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14784 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86166 invoked by uid 1010); 10 Feb 2005 08:30:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86139 invoked by uid 1007); 10 Feb 2005 08:30:59 -0000 Message-ID: <20050210083059.86138.qmail@lists.php.net> To: internals@lists.php.net 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> Date: Thu, 10 Feb 2005 09:30:53 +0100 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 212.238.144.71 Subject: Re: [PHP-DEV] Autoboxing in php 5.1 From: r.korving@xit.nl ("Ron Korving") Man, that's the primary reason I don't like Java :) You can't be serious :) Ron "Ante Drnasin" wrote in message news:20050210080546.52065.qmail@lists.php.net... > 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