Hacker News new | ask | show | jobs
by efnx 2039 days ago
I don’t think so - you can only use static functions to declare static variables. But you could do it with a macro. It’s debatable whether that would be readable and predictable, though.