You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SUGGESTION] About what classes can possibly look like #584
This code is perfectly compiled with latest version of cppfront (commit 9ca2f45).
cat function is both a constructor and class itself. Something similar implemented in scala language where class declaration syntax is just like function declaration syntax but with additional class keyword.
If there were ability to pass self parameter to say_nya: std::function<void()> which refers to cat__ret structure than it would be more look like a member function.
Conclusion: May be cpp2 does not need special syntax for classes, almost everithing that needed is already here.
Activity