CountBleck

Results 75 comments of CountBleck

> unless there is a solution I haven't thought of Since these types are known at compile-time, an `instanceof()` builtin could possibly help?

Are you sure we shouldn't wait until we use Wasm GC?

By "first class function", do you mean closures? Those might be easier to implement in Wasm GC, since the heap doesn't have to be dealt with manually, and closure objects...

> It should be same as `new XXX()`. That's actually my point. The `XXX` is backed by a `Class`, which is backed by a `ClassPrototype`, which is backed by an...

Also, the current test should already work: see [here](https://www.assemblyscript.org/editor#IyFvcHRpbWl6ZT1zcGVlZCZydW50aW1lPXN0dWIKZnVuY3Rpb24gZm9vKCk6ICh2OiBpMzIpID0+IHZvaWQgewogIGxldCBmbiA9ICh2OiBpMzIpOiB2b2lkID0+IHsKICAgIGFzc2VydCh2ID09IDEyMzQpOwogIH07CgogIGFzc2VydChmbi5pbmRleCAhPSAwKTsKICBmbigxMjM0KTsKICByZXR1cm4gZm47Cn0KCmxldCBmbiA9IGZvbygpOwoKZXhwb3J0IGZ1bmN0aW9uIHJ1bigpOiB2b2lkIHsKICAvLyBDbGljayBtb2R1bGUud2F0LCB0aGVuIFJ1bi4KICAvLyBUaGVuLCBjbGljayBtb2R1bGUudHMgKHRoaXMgdGFiKSwgY2hhbmdlIDEyMzUgdG8gMTIzNC4KICAvLyBDbGljayBtb2R1bGUud2F0IGFnYWluLCBhbmQgdGhlbiBSdW4gYWdhaW4uCiAgLy8gVGhpcyAiZXhwb3J0IGZ1bmN0aW9uIHJ1bigpOiB2b2lkIiBpc24ndCBuZWNlc3NhcnkgZm9yIHRoaXMgdG8gd29yay4KICBmbigxMjM1KTsKfQojIWh0bWwKPHNjcmlwdCB0eXBlPSJtb2R1bGUiPgogIGNvbnN0IHtydW59ID0gYXdhaXQgaW5zdGFudGlhdGUoYXdhaXQgY29tcGlsZSgpKQogIGxldCBzdGF0dXMgPSAid29ya2luZyIKCiAgdHJ5IHsKICAgIHJ1bigpCiAgfSBjYXRjaCAoZSkgewogICAgc3RhdHVzID0gIm5vdCB3b3JraW5nXG4iICsgZQogIH0KCiAgZG9jdW1lbnQuYm9keS5pbm5lclRleHQgPSBzdGF0dXMKPC9zY3JpcHQ+).

I don't quite understand what you mean.

Oh, do you mean creating a new `Function` object for each returned inner function, instead of a single object?

> Is Wasm GC ready? Nope. Keep in mind that I'm a procrastinating 10th grader who has to deal with an annoying amount of English homework :P I'll try to...

Number one seems more plausible, since a cast would fix it.

Good point, although I thought that would be a niche case in comparison to the RT growing memory. Do you think a handler can/should be integrated with ESM/raw bindings to...