jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Re: jed limits


Guenter Milde <G.Milde@xxxxxxxxxxxxxxxxxxxx> wrote:
>How about returning an associative array?

The C interface to slang associative arrays is not there yet, making
it difficult to do so.  Also, standard arrays are much more memory
efficient and the code that I wrote also executes faster since there
is not loop.  If you do not like array_map, you can also use a loop,
e.g.,

    define copy_keymap_overwrite (new_map, old_map)
    {
       variable keys, bindings;
       (keys, bindings) = get_keymap_bindings (old_map);

       _for (0, length(keys)-1, 1)
       {
          variable i = ();
          undefinekey(keys[i]);
          definekey(bindings[i], keys[i], new_map);
       }
    }

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]