Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42313 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59409 invoked from network); 17 Dec 2008 22:57:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2008 22:57:44 -0000 X-Host-Fingerprint: 82.41.135.70 82-41-135-70.cable.ubr02.grth.blueyonder.co.uk Received: from [82.41.135.70] ([82.41.135.70:18067] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/22-48223-7E389494 for ; Wed, 17 Dec 2008 17:57:44 -0500 Message-ID: <69.22.48223.7E389494@pb1.pair.com> To: internals@lists.php.net Date: Wed, 17 Dec 2008 22:57:34 +0000 User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 82.41.135.70 Subject: Q on Primitives From: nrixham@gmail.com (Nathan Rixham) Don't want to take up much of you're time, just wondered if anybody could point me to the reason why some primitives aren't in php. Would find it very very useful to have byte, short, long, float, double and char in php. (primarily byte and char). while I'm here I may as well also ask about further adding type hinting for the existing scalars and array. and finally different method signatures such as: class Whatever { public function __construct(Bar b); public function __construct(Foo f); public function doSomething(Bar b); public function doSomething(Foo f); } Regards!