Not logged inOpenClonk Forum
Up Topic Function pointers

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 Günther

> if so, what speaks against making include-chains work like C->B->A? As in "#include works like you copy&pasted the whole script"


Ignoring the implementation considerations for a moment, "as if copying the script" may be easy to explain, but it isn't the most useful tool. One normally wants some isolation against other scripts to avoid accidental name collisions. Splitting out a helper function in a library shouldn't risk breaking a random extension object that uses that library.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill