[Prev][Next][Index][Thread]

# Avoiding kill_task(task_id())...

- Date: Sun, 24 Dec 1995 13:37:35 PST
- From:
- Content-Length: 755
- Content-Type: text

    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)

- Prev: Re: Arguments -- what does "any" mean?
- Next: Can't suspend()ed task return a value in 1.8.0alpha1?
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index