Skip to content

Creating a bridge for class with static methods. #46

Answered by ethanblake4
Chappie74 asked this question in Q&A
Discussion options

You must be logged in to vote

Would I have to do this if I have the following:

Nope, you're good.

Would that be something like this?

No, those are instance runtime bindings. You can see examples of static runtime bindings here (which references this) and here (which references this). Constructors and static methods are defined basically the same way at runtime. (Edit: I did notice you already started doing this in your global class)

Do I need to define these overloads for the static functions?

No.

Finally this is what my file now looks like

I think you can remove nullable: true with the Future type reference.

I'm also setting up a global class so I can easily make calls to the compiler when the user submits t…

Replies: 4 comments 18 replies

Comment options

You must be logged in to vote
2 replies
@Chappie74
Comment options

@Chappie74
Comment options

Comment options

You must be logged in to vote
1 reply
@Chappie74
Comment options

Comment options

You must be logged in to vote
13 replies
@Chappie74
Comment options

@ethanblake4
Comment options

@Chappie74
Comment options

@ethanblake4
Comment options

@Chappie74
Comment options

Answer selected by Chappie74
Comment options

You must be logged in to vote
2 replies
@ethanblake4
Comment options

@ethanblake4
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants