Local functions #5624
Labels
goal:quality & productivity
Quality issues and issues that impact our productivity coding day to day inside slang
kind:bug
something doesn't work like it should
Milestone
Without checking the manual too closely I tried writing a local function like this:
So from what I understand this is not something that's actually supported, there's currently no support for local functions/lambda functions/closures/etc. But it still compiles into correct code - is this parsed as a member function? It has a few problems:
Unless I'm completely off the mark here, declaring a function like GetValue inside a function should probably just produce an error.
The text was updated successfully, but these errors were encountered: