# 0-based indices for verbs in old code...

Don Schwarz (darkowl@darkowl.pr.mcs.net)
Sun, 24 Mar 1996 16:52:58 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    On Sun, 24 Mar 1996, Adrian Irving-Beer wrote:

    > >Will there be a clean version of LambdaCore soon that eliminates using
    > >the zero base for accessing verbs?  I enabled the old behavior by
    > >defining $server_options.support_numeric_verbname_strings and setting it
    > >equal to one.  Or has someone compiled a list of verbs and fixes that
    > >addresses this problem?
    > >
    >
    > I created a toggle ($grep_with_match) which would allow someone to use
    > $string_utils:match instead of just index().  This allowed me to use
    >
    Take a look at @egrep, that does the same thing as @grep but uses regexps.
    > @grep *0..length(verbs(*)) - 1*
    Use: @egrep %[0..length(verbs(.+)) - 1%], although you'll have to fix a lot
    more than that to get it to fully support 1-based indexes, including fixing
    all the verbs that say the # of the verb after the name (ie @verb).
                                                                 --Dark_Owl