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
Copy file name to clipboardExpand all lines: index.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,10 @@ I think it is stated somewhere but I missed first that if function name starts w
55
55
Basic function is simple as above.
56
56
But then there is sometimes stuff just after the 'func' keyword, tutorials somehow seem to skip this .. I leared this by googling the very similar question.
57
57
58
-
But then function can be also 'class/struct' function.
58
+
Thn functions can also be 'class/struct'-functions with out being defined in the class defination.
59
59
60
60
That is the stuff in brackets after 'func' is like automaticly made class/struct instance.. and used like this-pointer in C++.
0 commit comments