Skip to content

Loading…

Need BUILD/bless and a new that takes *%args #3

Closed
jnthn opened this Issue · 2 comments

3 participants

@jnthn
Perl 6 member

Get some simple constructor/BUILD support in place in NQPMu.

@moritz
Perl 6 member

nqp now supports .bless and .new with *%args.

Since I didn't find any support for submethods, I left BUILD out for now.

@arnsholt
Perl 6 member

According to @jnthn, submethods aren't planned so far, so I'm closing this for now. If we ever implement them we can reopen this issue.

@arnsholt arnsholt closed this
@pmurias pmurias added a commit that referenced this issue
@pmurias pmurias [js] Continuations are just starting to partially work
my $savecont;
nqp::continuationreset(nqp::null(), -> {
    nqp::say("#1");
    nqp::continuationcontrol(0, nqp::null(), -> $cont {
        $savecont := $cont;
    });
    nqp::say("#3");
});
nqp::say("#2");
nqp::continuationinvoke($savecont, -> {  });
nqp::say("#4");

prints stuff in the right order.
c0b2f4b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.