3 ms·
can we call the method without doing t.F()? like just F()? I accept I have to modify the statement I made.
by thewhitetulip 10y ago
can we call the method without doing t.F()? like just F()?
I accept I have to modify the statement I made.
- chrisbroadfoot 10y agoNo. F refers to a different function than t.F.
- thewhitetulip 10y agoYes that was my point when i said we can't declare functions inside struct We can have methods which work on objects on structs but never a function like class's method