What is the function of new() in Julia? Is this question even specific enough?
I am looking through the module Mocha where new(...) is used quite commonly, but I don't see any definition of new(), only uses of it, nor do I find reference to it in the Julia documentation.
I thought it might then be defined in a module that is being used by Mocha, but then I would think I could learn about new() with Mocha.new from the REPL, but that comes back with ERROR: UndefVarError: new not defined.
For the life of me I can't figure out what new(...) is doing. If it doesn't sound like something common to Julia, what can I do to try to track down where it's defined?
new()is used to define the inner constructor method. There may be other uses I am unaware of, hence why this is a comment and not an answer. - Colin T Bowersnew()is clearly explained. Some people say I can look at the source codes to see what is going on. I disagree. - Po C.