Re: Static inheritance

2018-04-24 Thread Alex Harui
-all-static-methods-and-applying-a-singleton-patte My 2 cents, -Alex From: Harbs Reply-To: "users@royale.apache.org" Date: Monday, April 23, 2018 at 11:43 PM To: "users@royale.apache.org" Subject: Re: Static inheritance Not sure. Less boilerplate code? On Apr 24, 2018, at

Re: Static inheritance

2018-04-23 Thread Harbs
:30 PM > To: "users@royale.apache.org" > Subject: Re: Static inheritance > > Nope. It does not work in AS3 targeting JS either because it’s a ES6-only > feature. <> > >> On Apr 23, 2018, at 11:28 PM, Carlos Rovira > <mailto:carlosrov...@apache.org>&g

Re: Static inheritance

2018-04-23 Thread Alex Harui
What are the advantages of static over the singleton pattern? -Alex From: Harbs Reply-To: "users@royale.apache.org" Date: Monday, April 23, 2018 at 1:30 PM To: "users@royale.apache.org" Subject: Re: Static inheritance Nope. It does not work in AS3 targeting JS either bec

Re: Static inheritance

2018-04-23 Thread Harbs
Nope. It does not work in AS3 targeting JS either because it’s a ES6-only feature. > On Apr 23, 2018, at 11:28 PM, Carlos Rovira wrote: > > Ok, so that works in JS, but will work as well in SWF? > > 2018-04-23 20:25 GMT+02:00 Harbs >: > https://github.com/devong

Re: Static inheritance

2018-04-23 Thread Carlos Rovira
Ok, so that works in JS, but will work as well in SWF? 2018-04-23 20:25 GMT+02:00 Harbs : > https://github.com/devongovett/fontkit/blob/master/src/opentype/shapers/ > DefaultShaper.js > https://github.com/devongovett/fontkit/blob/master/src/opentype/shapers/ > UniversalShaper.js > https://github.

Re: Static inheritance

2018-04-23 Thread Harbs
https://github.com/devongovett/fontkit/blob/master/src/opentype/shapers/DefaultShaper.js https://github.com/devongovett/fontkit/blob/master/src/opentype/shapers/UniversalShaper.js

Re: Static inheritance

2018-04-23 Thread Carlos Rovira
Hi, I'm interested in know what static inheritance will give us. I search a bit, but couldn't see links that give some points about what this feature will give us. thanks 2018-04-23 19:25 GMT+02:00 Alex Harui : > Harbs, > > Can you provide a link to more info on how 'this' works in statics?

Re: Static inheritance

2018-04-23 Thread Alex Harui
Harbs, Can you provide a link to more info on how 'this' works in statics? MDN makes it sound like it points to the global object even in ES6. I saw an article that code duplication isn't a perfect emulation of ES6 statics in ES5. https://www.bennadel.com/blog/3300-static-methods-are-inherited