On Mar 16, 2014 6:09 PM, "Bram Moolenaar" <[email protected]> wrote:
>
>
> Cade Forester wrote:
>
> > diff -r f99b6efb5193 runtime/doc/eval.txt
> > --- a/runtime/doc/eval.txt    Wed Mar 12 21:28:26 2014 +0100
> > +++ b/runtime/doc/eval.txt    Sun Mar 16 13:16:10 2014 +0700
> > @@ -6624,7 +6624,7 @@
> >  :fu[nction][!] {name}([arguments]) [range] [abort] [dict]
> >                       Define a new function by the name {name}.  The
name
> >                       must be made of alphanumeric characters and '_',
and
> > -                     must start with a capital or "s:" (see above).
> > +                     must start with a capital, "g:" or "s:" (see
above).
> >
> >                       {name} can also be a |Dictionary| entry that is a
> >                       |Funcref|: >
>
> When "g:" is used the name must still start with a capital.  It has no
> effect though, without "g:" the function is also global.

? It does not have to. The current implementation allows function to
*contain colon*. OP is wrong: not "start with g:", but "contain colon on
any position except for the start of the name". And if function name
contains anything except for alphanumeric characters and underscore (i.e.
colon, hash and SNR) it no longer has to start with capital letter. E.g.
the following code runs fine:

    function abc:def()
        return 1
    endfunction
    echo abc:def()

g: falls under *this* rule, it has absolutely nothing to do with variable
scope.

>
> --
> (letter from Mark to Mike, about the film's probable certificate)
>       For an 'A' we would have to: Lose as many shits as possible; Take
Jesus
>       Christ out, if possible; Loose "I fart in your general direction";
Lose
>       "the oral sex"; Lose "oh, fuck off"; Lose "We make castanets out of
your
>       testicles"
>                  "Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD
>
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net
\\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/\\\
> \\\  an exciting new programming language -- http://www.Zimbu.org
 ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org
 ///
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
"vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui