Better HN
topnewbestaskshowjobs
Log inSign up

KonkeyDong69

3 karma · joined Dec 27, 2017 (8y ago) · 3 submissions

Submissions

comment 7y ago · link · parent

In addition to what the other replies said, feel free to eyeball the code required to embed SpiderMonkey in Firefox at https://github.com/mozilla/gecko-dev/tree/master/dom/binding.... It's rather large and complex.

comment 7y ago · link · parent

Hey. Clicked the link. Watched the video. It appears, that you were not laughed at.

comment 8y ago · link · parent

I would caution against using this pattern. In particular, this does not scale to:

    class A {};
    class B : public A {};
    class C : public B {};
Using the convention of defining `base_type` in the base class means that C will expect B to define `base_type`, which means that B will be cut off from A's `base_type`. This then forces you to use different identifiers, which brings you back to square one (you might as well just explicitly write out the class in that case).