On 9/4/06, Martin Baehr <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 04, 2006 at 01:24:16AM +0200, Axel Liljencrantz wrote:
> > True. I plan on adding checks that forbid you to do certain things in
> > autoload files, and defining other functions should be on that list.
> > Unfortunately, there are reasons for not completely forbidding
> > everything except function definitions. For example, fish uses
> > different definitions for the '_' function depending on whether
> > gettext is installed. ('_' is used to translate a string to the
> > current language) It makes sense to put this test outside the function
> > definition.
>
> i guess the important part is that inside a file named foo.fish only one
> function named foo may be defined, and if foo is redefined in the same
> file, or if another function is defined the file should be rejected.
I'm not sure I see why redefining a function is such a terrible thing. Writing
function foo
[default implementation]
end
if some_weird_condition
function foo
[special case]
end
end
seems like a reasonable thing to do.
>
> the above test would do neither, as it would only create one definition
> of _ (which definition that is depends on the test)
>
> greetings, martin.
> --
> cooperative communication with sTeam - caudium, pike, roxen and unix
> offering: programming, training and administration - anywhere in the world
> --
> pike programmer travelling and working in europe open-steam.org
> unix system- bahai.or.at iaeste.(tuwien.ac|or).at
> administrator (caudium|gotpike).org is.schon.org
> Martin Bähr http://www.iaeste.or.at/~mbaehr/
>
--
Axel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users