Maxcript Overload a struct-function

polycounter lvl 11
Offline / Send Message
SimonT polycounter lvl 11
As the documentation says, you can defined a function in a struct like
struct foo
(
a, b, c,
fn baz n = sqrt (n + 1),
fn bar x y = print (x ^ 2 + y ^ 2)
)

but is it possible, to overload this function later? So that you tell the function to do different things later in the code? This means, the script could always execute the same function, but the result would be different depending on the code content.

Is this possivble=

Replies

Sign In or Register to comment.