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 Caesar
Btw, could someone explain this stuff to me:

If I do foo->bar(), and bar is a function in a proplist foo, what will be the object context of that call? Does that change if foo is not a proplist but (additionally) an object?

Also, my opinion is that foo.bar->blubb.gar() should be something meaningful, namely calling the function blubb.gar with the object context foo.bar (where blubb and foo are just proplists having their properties gar and bar accessed, one being an object/proplist, the other a function). I like it because there's nothing implicit about it, but I hate it because it's awfully complex and hard to read.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill