While I'm toying with the language this weekend, is there anyway to do this:
or thisCode:LearnTrick("Roll Over", 10, 10);
if the function is prototyped asCode:LearnTrick(Trick("Roll Over", 10, 10));
and a Trick is:Code:LearnTrick(Trick);
Code:struct Trick { string name; int fatigue; int hunger; };
I know I could use a class with a constructor for this, but is there any way to have a struct be pieced together in a function argument?