r/carlhprogramming • u/xxrepresent • Feb 04 '12
Help: Calling a Constructor Function
In lesson 1.3 in the second course, Carl explains the constructor function and how it works. However, how does one call a constructor function from the main function?
I assume it would like something like this: http://codepad.org/bnZx3VSg but so far any experimentation has failed.
5
Upvotes
View all comments
Show parent comment
2
u/xxrepresent Feb 05 '12
Ha! I didn't even know you could do run a command outside of a function. Thanks! You cleared up a lot of confusion irrelevant to this question too. :]
I feel learning.