What would prohibit this?
class Factory {
public static function makeFoo() {
return new Foo();
}
}
It's perhaps less generic than what you posted, but this demonstrates
that that a Factory *could* hold the definition on the class and not
the method.
To be
(Please stop top-posting!)
On Fri, Sep 11, 2015 at 10:55 AM, Ben Scholzen wrote:
> Well, with the example, there's a good reason to have them separated:
>
> class Factory
> {
> public static function createFoo()
> {
> return new Foo();
> }
>
> public static function createBar()
> {
Joe Watkins in php.internals (Thu, 10 Sep 2015 17:25:22 +0100):
>I thought vc14 deps were just copied from somewhere else, that's what I
>did to test ?
>
>Does that mean no dlls for now ?
>
>Any time is good, you have more important things to do ;)
If you want to try right now, test it
Well, with the example, there's a good reason to have them separated:
class Factory
{
public static function createFoo()
{
return new Foo();
}
public static function createBar()
{
return new Bar();
}
}
class Foo {}
class Bar {}
The factory instance does not know to need abo
On Fri, Sep 11, 2015 at 10:00 AM, Korvin Szanto wrote:
> Levi,
> It's my understanding that the "type variable" is a member of the instance
> and not of the class. In at least java, generics are unavailable in static
> context[1] though they can be specifically defined on the static method
> itsel
Levi,
It's my understanding that the "type variable" is a member of the instance
and not of the class. In at least java, generics are unavailable in static
context[1] though they can be specifically defined on the static method
itself[2].
[1]
http://stackoverflow.com/questions/936377/static-method
On Thu, Sep 10, 2015 at 5:12 PM, Ben Scholzen 'DASPRiD'
wrote:
> Hi Dennis,
>
> thanks for your feedback, see my answers below:
>
>> 1. static methods:
>>
>> class Foo {
>> public static function test() {
>> }
>> }
>>
>> how can I call the method:
>> a) Foo::test()
>> or
>> b) Foo:
Results for project php-src-nightly, build date 2015-09-11 05:00:00+03:00
commit: 719664dec2573e9189fd2244624f0c6013197281
revision_date: 2015-09-10 20:24:11+03:00
environment:Haswell-EP
cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping
2, LLC 45 MB
On Wed, 9 Sep 2015, Yasuo Ohgaki wrote:
> Hi Derick,
>
> On Wed, Sep 9, 2015 at 1:31 AM, Derick Rethans wrote:
> > Currently, it works as follows by design:
> >
> > - the parser, allows for each unit (year, month, day, hour, minute,
> > second) the full range of values. For a year that's just