Not logged inOpenClonk Forum
Up Topic New relaunch rule

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 Sven2
Set* functions are the definition of the public interface of the object. It's pretty much standard to user interfaces like this (see e.g. https://en.wikipedia.org/wiki/Mutator_method for a few languages).

It's a standard we use in all objects and the engine (e.g. SetColor(...), not Set("color", ...)). Please don't invent new standards. Even if they make sense on their own, it complicates things to have both variants.

A Set function that simply sets a local variable is rather pointless. You could as well have written object.variable = setting; then.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill