Skip to content

Builtin classes should be able to override constructor as regular function #109

@KCreate

Description

@KCreate

Would allow neat and tidy syntax for cast operations, e.g:

Int("25")
Number(some_user_input)
Tuple(some_list)

This can be implemented as an additional check after the kFlagNonConstructable check at interpreter.cpp:115.

The runtime should just call the constructor directly without creating an instance value first

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions