Not logged inOpenClonk Forum
Up Topic Using the point operator for function calls in C4Script

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Luchs
I don't think the change is worth the trouble.

- We'd have to keep -> in any case for compatibility reasons (see Maikel).

- -> always starts a function call, and . always starts a proplist access. This likely makes the parser simpler.

- You already can use the point operator for calls, by rewriting foo->Bar(1, 2, 3) to Call(foo.Bar, 1, 2, 3) (or maybe you need foo->Call(foo.Bar, 1, 2, 3), not sure)

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill