Simon Krajewski

Results 881 comments of Simon Krajewski

I got the basics working on the JVM target. This increasingly feels like I have no idea what I'm doing, but that may or may not be normal when implementing...

Got the suspend thing working as well. This feels pretty hacky to do it like that, but I suppose it's not unexpected with these two different signatures going on. @Aidan63...

> @:native('::hx::Coroutine::suspend') Hmm, that's what I tried as well but it generates this which the C++ compiler doesn't appreciate: ```c++ ::Dynamic Coroutine_Impl__obj::_hx_f0xd5f8b494( ::Dynamic f, ::Dynamic cont) { return ::::hx::Coroutine::suspend(f,cont); }...

I can reproduce the Exception problem as well. Don't know yet what that is about, #11574 doesn't help with that either. Another problem afterwards is this: ```haxe @:coroutine function error()...

Alright, good news: with the void problem out of the way and the Exception problem ignored, we can now successfully compile the coroutine tests to C++. CI should fail because...

Do you have an asys + coro branch? I can't merge hxcpp_asys because git says something about unrelated histories.

Uhm right, I somehow thought hxcpp_asys was a Haxe branch. I can reproduce the `__this` problem now, thanks!

```haxe class CoroFile { public final file:Dynamic; public function new(file) { this.file = file; } @:coroutine public function write() { function f() { trace(file); } } } function main() {...

This works now. I realized that it was broken even in the case where `this` wasn't already captured, because it would be captured after the coroutine transformation. We now treat...

@RealyUniqueName Hi! I could use some advice for an exception-related problem I'm having here. Given a coroutine like this: ```haxe @:coroutine function tryCatch(e:haxe.Exception) { try { throw e; } catch...