Em Seg, 2008-04-07 às 15:44 +0200, Derick Rethans escreveu:
> On Sun, 6 Apr 2008, Mike Lively wrote:
>
> > On Sun, Apr 6, 2008 at 8:41 PM, Felipe Pena <[EMAIL PROTECTED]> wrote:
> >
> > > - PHP types
> > >
> > > function (string) foo(...) { } // Unicode string too
> > > function (object) foo(...) { } // Strict
> > > function (array) foo(...) { } // Strict
> > > function (bool) foo(...) { } // Strict
> > > function (int) foo(...) { } // Accepts numeric string
> > > function (double) foo(...) { } // Accepts numeric string
> >
> >
> > If there ever were return type hinting in PHP I don't think it would be wise
> > to support PHP Types unless parameter hints were changed to support them.
> > It's just inconsistent.
>
> Right, this shouldn't even be on the agenda before we have scalar type
> hints. So, perhaps you can make a patch for that first Felipe?
I don't thought this before!
Sure, i'll try provide a patch.
Thanks.
--
Regards,
Felipe Pena.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php