Skip to content

implicit type conversions #209

@define-private-public

Description

@define-private-public

I was binding a function that took one argument as a double (e.g. foo(double x)). I tried calling it in chaiscript, once passing in an integer and once with a double. It broke on the integer, but was okay on the double call.

> foo(2)
Error
> foo(2.0)
<good_things>

Is there anything else I could use (other than a lambda function) to do an implicit type conversion in ChaiScript?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions