Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37060 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76867 invoked from network); 17 Apr 2008 12:14:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2008 12:14:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Linux 2.6 Received: from [195.226.6.51] ([195.226.6.51:43447] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/C7-38326-72F37084 for ; Thu, 17 Apr 2008 08:14:32 -0400 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 9CB33170534; Thu, 17 Apr 2008 14:14:28 +0200 (CEST) Received: from unknown by localhost (amavisd-new, unix socket) id client-XXGkT3uT; Thu, 17 Apr 2008 14:14:25 +0200 (CEST) Received: from [192.168.1.72] (84-75-132-140.dclient.hispeed.ch [84.75.132.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTP id 619F6ADD04; Thu, 17 Apr 2008 14:14:25 +0200 (CEST) Message-ID: <48073F20.1060206@cschneid.com> Date: Thu, 17 Apr 2008 14:14:24 +0200 User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: Arvids Godjuks CC: PHP Developers Mailing List References: <1208404255.5665.34.camel@pena> <48073922.6030808@cschneid.com> <9b3df6a50804170500p7aabbc44h503f2e9c0d0cdb71@mail.gmail.com> In-Reply-To: <9b3df6a50804170500p7aabbc44h503f2e9c0d0cdb71@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at gna.ch Subject: Re: [PHP-DEV] Re: [RFC] Type hints (parameter and return value) From: cschneid@cschneid.com (Christian Schneider) Arvids Godjuks wrote: > So full syntax will be like this > function (integer) test(integer $value) { ... } I guess you are right: int and integer seem to be aliase and both check for int *or* numeric strings, not the type int. It is also not clear if (string) accepts ints/floats which are often valid values. I think a table of which type hint accepts which values would be useful. And there also remains the issue with the keywords where I'd like to be enlightened :-) - Chris