#[function] is not a member function

1 messages · Page 1 of 1 (latest)

lavish quarry
#

If render() is inside the Renderer struct, why is it not a member function of that struct? I am confused.

sacred oriole
#

a function has to take an instance of the type to be a member function

sacred oriole
#

you want pub fn render(self: Renderer) void {

#

the const self = @This(); isnt necessary here

lavish quarry
#

ohh, okay, thank you much :)