[julia-users] merge functions from different modules

2015-05-04 Thread David Gold
Based on recent discussions, it seems that at least some people would like the option to have unqualified use of a function name dispatch across modules when the argument on which the function is called unambiguously specifies an exported method. While Julia doesn't do this automatically, one

Re: [julia-users] merge functions from different modules

2015-05-04 Thread Stefan Karpinski
Cool. The fact that you can do this implies that the current behavior is in a sense more fundamental than merging since you can implement merging like this, whereas if merging were the default, it's unclear how you would recover the current behavior. On Mon, May 4, 2015 at 3:08 PM, David Gold

Re: [julia-users] merge functions from different modules

2015-05-04 Thread David Gold
@Stefan: Based on my experiences implementing this feature, I have to agree. In particular, I imagine that any attempt to include an un-merge feature would run into a lot of trouble from the fact that function names are constants. Once you've merged methods into a function 'f', they are there

Re: [julia-users] merge functions from different modules

2015-05-04 Thread Tom Breloff
I agree with Stefan. The default behavior should be very conservative, and any niceties (like merging) should be optional features/extensions. Thanks David... I'll check this out. On Monday, May 4, 2015 at 3:36:28 PM UTC-4, Stefan Karpinski wrote: Cool. The fact that you can do this implies