George Waksman <waksman@...> writes:

> 2. autoloaded functions can call other autoloaded functions (double 
> underscore is typically used to denote "private" functions):
> 
> file:__helper_function.fish
> -----------------------
> function __helper_function --description "helper function"
>    # do something
> end
> -----------------------
> 
> file:some_function1.fish
> -----------------------
> function some_function1 --description "foo bar baz"
>    set somevar (__helper_function "arg")
>    # do something
> end
> -----------------------
> 
> file:some_function2.fish
> -----------------------
> function some_function2 --description "quux muux bazinga"
>    set somevar (__helper_function "arg")
>    # do something
> end
> -----------------------
> 
> --George
> 


Thank you, George, these are great ideas. So what you mean is, we don't need to
declare dependency between autoloading functions, when we call a function, it
will simply load the depend autoloading function.

This is true for fish itself, after second thought. I'm using oh-my-fish, for
better function organization, but there is indeed dependency issues between
oh-my-fish plugins, if the depended plugin is not enabled, the dependant plugin
is broken. Maybe I should ask this question in oh-my-fish list.



------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to