[e-lang] Newbie question

Mariano Montone marianomontone at gmail.com
Mon Apr 17 10:21:09 EDT 2006


>
> The complexity above is because of abstracting the 'deliver several
> messages' structure. Doing it inline would almost be like your example:
>
> carRcvr <- __whenMoreResolved(def deliverer implements PassByCopy {
>                                  to run(target) :void {
>                                    if (Ref.isEventual(target)) {
>                                      target <- \
>                                        __whenMoreResolved(deliverer)
>                                    } else {
>                                      target.moveTo(2,3)
>                                      target.moveTo(5,6)
>                                      target.moveTo(7,3)
>                                    }
>                                  }
>                                })
>
> Sorry, I have one more question (at the moment :P).
What happens if I do this?:

carRcvr <- __whenMoreResolved(def deliverer implements PassByCopy {
                                 to run(target) :void {
                                   if (Ref.isEventual(target)) {
                                     target <- \
                                       __whenMoreResolved(deliverer)
                                   } else {
                                     while(true){}
                                   }
                                 }
                               })

Am I blocking the car vat? If that's true then I may program a malicious
object.

Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://eros.cs.jhu.edu/pipermail/e-lang/attachments/20060417/12e9501a/attachment.html


More information about the e-lang mailing list