We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Extension methods allow you to add a function to a struct or a trait after it is already defined.
struct B { int b_val; } fun void B::Extension() { printf("pass", 0); }
Once you define it, it can be used just like any other member function.
let x = B(); x.Extension();
There was an error while loading. Please reload this page.
Home Building From Source Command Line Project Files