I have a few structs in my project, which I define an init proc for.
world = New(World);
init(world);
camera = New(Camera);
init(camera, render);
player = spawn_entity(entity_manager, Player);
init(*player);
using goto definition on the one of these init procs results in me being taken to whatever init proc it found first. In this case it takes me to the one for the player. It seems like the LSP doesn't take into account the type that's being passed into the proc, and only looks at the proc name? I haven't looked at the code yet though.
I have a few structs in my project, which I define an
initproc for.using goto definition on the one of these
initprocs results in me being taken to whatever init proc it found first. In this case it takes me to the one for the player. It seems like the LSP doesn't take into account the type that's being passed into the proc, and only looks at the proc name? I haven't looked at the code yet though.