Skip to content

Conversation

ttencate
Copy link
Contributor

@ttencate ttencate commented Mar 29, 2023

Fixes #175

@ttencate ttencate marked this pull request as draft March 29, 2023 19:29
@Bromeon Bromeon added feature Adds functionality to the library c: register Register classes, functions and other symbols to GDScript labels Mar 29, 2023
@Bromeon Bromeon linked an issue Mar 29, 2023 that may be closed by this pull request
@Bromeon
Copy link
Member

Bromeon commented Apr 2, 2023

Trying with latest CI changes...

bors try

bors bot added a commit that referenced this pull request Apr 2, 2023
@bors
Copy link
Contributor

bors bot commented Apr 2, 2023

try

Build failed:

@Bromeon
Copy link
Member

Bromeon commented Apr 30, 2023

Closed in favor of #252.

@Bromeon Bromeon closed this Apr 30, 2023
bors bot added a commit that referenced this pull request May 8, 2023
252: Implement `#[func]` for static functions r=Bromeon a=lilizoey

Takes over from #210 

Adds support for static methods in classes.

also replaces tabs with spaces in `signature.rs`.

thanks a lot to `@ttencate!` it was very straightforward to make this work based on what they'd already done.

from what i can tell, there are no static virtual methods. so we dont need to implement support for that. im not sure if there ever will be but it doesn't seem likely to me at least.

it might be worth it to move more of this logic into procedural macros eventually.

closes #175 

262: Correct documentation on Array r=Bromeon a=Mercerenies

Per #151, the struct `TypedArray` has been renamed. This MR updates stale documentation to reflect the new naming scheme.

266: Improve `cargo check` times for incremental changes to `godot-core` r=Bromeon a=lilizoey

On my machine, this change makes the time `cargo check` takes to run go from 48 seconds to 11 seconds when making an incremental change to `godot-core`. in this case tested by adding/removing a single method to/from `Basis`.

I've seen it be as low as 2 seconds sometimes but im not entirely sure why that happens.

Co-authored-by: Thomas ten Cate <[email protected]>
Co-authored-by: Lili Zoey <[email protected]>
Co-authored-by: Silvio Mayolo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: register Register classes, functions and other symbols to GDScript feature Adds functionality to the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static methods and custom constructors on custom types
2 participants