[julia-users] Re: Error when assigning values to an object

2016-09-16 Thread 'Greg Plowman' via julia-users
Export PhyNode from MyClass module.

[julia-users] Re: Error when assigning values to an object

2016-09-16 Thread varun7rs
Thanks for answering all of my nooby questions. Julia is cool again! On Friday, 16 September 2016 14:20:53 UTC+2, randm...@gmail.com wrote: > > Sure, just export what you want available when using your Module -- > that's useful anyways for defining a public API. Also have a look at the > Julia

[julia-users] Re: Error when assigning values to an object

2016-09-16 Thread randmstring
Sure, just export what you want available when using your Module -- that's useful anyways for defining a public API. Also have a look at the Julia documentation , which describes all that pretty nicely.

[julia-users] Re: Error when assigning values to an object

2016-09-16 Thread varun7rs
Oh, thanks so much! It fixed my problem. But, is there a way to just write PhyNode(blah, blah, blah) instead of the cumbersome MyClasses.PhyNode ? I tried using MyClasses and it reported the same error as well. On Friday, 16 September 2016 12:11:18 UTC+2, randm...@gmail.com wrote: > > The error

[julia-users] Re: Error when assigning values to an object

2016-09-16 Thread randmstring
The error I'm getting is something like ERROR: LoadError: UndefVarError: PhyNode not defined So since you used importall instead of using, you need to the qualified MyClasses.PhyNode. If you do, you'll probably get some error about ERROR: LoadError: MethodError: `convert` has no method

[julia-users] Re: Error when assigning values to an object

2016-09-16 Thread varun7rs
The files are indeed in the same directory and I also added the path of these files to the variable LOAD_PATH as well. But still, I get the same error. On Friday, 16 September 2016 09:49:45 UTC+2, Lutfullah Tomak wrote: > > It is related to the `importall` part of code. It can be that the files