Menu

#3 Next in ensemble call runs into unknown

2.1.1
open
ssoberni
2017-08-09
2017-08-09
ssoberni
No
package req nx::test
nx::Class create ::A
set host ::A
# set host ::nx::Object
nx::test case tmp {
    $::host public method "i o a" {} {return a}
    $::host public alias "i o b" ::nsf::methods::class::info::heritage
}

nx::Class create B -superclasses A {
    :public method "i s" args {
    next; # IRGH: Should not trigger unknown!
    return [current class]
    }
    :create b
}

? {b i s} "::B"; # IRGH: "unable to dispatch sub-method "s" of ::b i; valid are: i o a, i o b, i s"

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.