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

Adrian Irving-Beer (ay439@freenet.carleton.ca)
Sun, 24 Mar 1996 15:26:31 PST

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

    >
    >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

    @grep *0..length(verbs(*)) - 1*

    or something like that and, although it took longer, I was able to edit
    every verb like that *while* it was @grepping :)

    >Imagine my surprise when I went to '@examine' something and it crashed in
    >looking for verb_info on the zeroth verb.

    There are a lot of #1 verbs that do that - including the examine verbs.
    So there you go.

    --
    - Wisquatuk, wizard for hire.
     AnonyMOO: moo.stac.org  8888 	  	      ArkayMOO: b4futures.net   8888
    MOOnShine: dir.mcc.ac.uk 8888    Archwiz: TimeWarp MOO: aix1.uottawa.ca 8888