# Avoiding kill_task(task_id())...

"Nate Massey" (natem@ctdnet.acns.nwu.edu)
Sun, 24 Dec 1995 13:37:35 PST

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

    I have loops, like the following:

    for i in (this.users)
      i:tell(user.name, " has connected.");
    endfor

    for i in ($core_objects())
      i:server_started();
    endfor

    and I wish for the verbs to be executed on all of those objects
    no matter what.  I can use `i:server_started() ! ANY => 0' to keep
    it from breaking if there's an error, but I run into a problem if
    someone is malicious and decides to use 'kill_task(task_id())'.
    Does anyone know of a way around this?  There is one way I've found,
    but it's quite inefficient:

    for i in ($core_objects())
      fork (0)
        i:server_started();
      endfork
    endfor

    I'm looking for a better way!  Can anyone help me, please??

    Thanks...

    --Nate

    (see my in progress MOO WWW pages at http://www.lfa.lfc.edu/~nmassey/moo)