Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto generating multi-method default handler with type casting for variadic argument list #522

Closed
arakov opened this issue Sep 23, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@arakov
Copy link
Member

arakov commented Sep 23, 2020

The following code should work:

B;

C
{
    B cast()
        = new B();
}

singleton E
{
    load(params B[] o)
    {
        for(int i := 0, i < o.Length, i += 1)
        {
            console.writeLine(o[i])
        }
    }
}

public program()
{
    var b := new B();
    var c := new C();
    
    var e := E.load(b,c);
}

The output should be

$private'B
$private'B
@arakov
Copy link
Member Author

arakov commented Apr 26, 2024

fixed in ELENA 6.0.10

@arakov arakov closed this as completed Apr 26, 2024
@arakov arakov mentioned this issue May 7, 2024
3 tasks
arakov added a commit that referenced this issue May 7, 2024
* [ADDED] #635 : new entry point to invoke the functionality from another program
* [ADDED] ecv-cli : adding a filter for listing members
* [FIXED] aarch64 : xstorefir opcode
* fixing xstorefir
* aarch64 assembler : supporting MOVN
* #635 : working on second example calc
* fixing ppc64le open opcode
* [ADDED] new option : auto-preloaded module extension
* [FIXED] reducing the total size of an executable (almost by half) by ignoring module extensions by default
* [FIXED]toJson extension
* [FIXED]try statement does not allocate an exception
* [FIXED]toJson extension
* [FIXED] #401 - += operator with array
* [FIXED] #488 : Declaring auto struct variable
* [FIXED] #522 : single dispatch variadic message
* [ADDED] #646 : Calling own method directly without target
* [FIXED] #630 : 64bit GC routine - expanding header
* [FIXED] x86-64 : calling from external
* [ADDED] chat sample
* [FIXED] #608 : single dispatch for constructors
* [ADDED] #651 : Template Expression - typecasting
* [ADDED]a static method must have an access to private methods
* fixing exprtree1 tutorial sample
* [FIXED] #504 : Support an array operation with external function arguments
* [FIXED] #589 : Supporting ?: operator inside ??
* [ADDED] #569 : Ignoring order of declaration
* #601 : optimize: if (nil == name) {} else {}
* IDE : fixing background issue
* [FIXED]elt-cli : fixing support for extension methods
* [FIXED] xhookdpr for x86-64 mode
* x86-64 : fixing elenavm & elt
* [ADDED] syntax highlighting
@arakov arakov mentioned this issue May 7, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant