Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77175 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57045 invoked from network); 14 Sep 2014 09:12:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2014 09:12:41 -0000 Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=permerror Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 78.32.209.33 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 78.32.209.33 freshmint.phcomp.co.uk Received: from [78.32.209.33] ([78.32.209.33:58055] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/10-53483-80C55145 for ; Sun, 14 Sep 2014 05:12:41 -0400 Received: from addw by mint.phcomp.co.uk with local (Exim 4.72) (envelope-from ) id 1XT5rI-0004PC-DH for internals@lists.php.net; Sun, 14 Sep 2014 10:12:36 +0100 Date: Sun, 14 Sep 2014 10:12:36 +0100 To: internals@lists.php.net Message-ID: <20140914091236.GC14312@phcomp.co.uk> Mail-Followup-To: internals@lists.php.net References: <6893A97A-EC4C-4124-B804-96E2A26B953F@ajf.me> <20140914000718.GB14312@phcomp.co.uk> <3177B936-50C1-4E5D-8687-FD235C72B411@ajf.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3177B936-50C1-4E5D-8687-FD235C72B411@ajf.me> Organization: Parliament Hill Computers Ltd User-Agent: Mutt/1.5.20 (2009-12-10) Subject: Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast From: addw@phcomp.co.uk (Alain Williams) On Sun, Sep 14, 2014 at 01:10:20AM +0100, Andrea Faulds wrote: > > On 14 Sep 2014, at 01:07, Alain Williams wrote: > > > You give an option for float to int casting to truncate. > > Where? Possible Changes Float to Int Casting Rules ... This could be relaxed for semi-representable values. So 1.5 could be allowed for an int parameter (casted to 1). -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include