Skip to content

Default arguments in signals #88

Description

@vonagam

There are default_args, num_default_args in godot_signal and default_value in godot_signal_argument.

Based on source code for godot_nativescript_register_signal (link to master, there are no changes to relevant part in question since third version) seems like default_args are not used. Instead a number of num_default_args default_values is collected from the start of args for use as defaults.

So seems like either default_args or default_value should be removed.

It seems wrong that default values are collected from the start and not the end of args.

And usage property in godot_signal_argument seems meaningless (it is absent from godot_method_arg for example).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions