[DGD] Circular Object Links

Blain blain20 at gmail.com
Sat Apr 20 12:35:58 CEST 2013


Yeah, yeah.  In my haste, I forgot to point to the latest object instead of
perpetually pointing to the starter object. ;)

--Blain


On Sat, Apr 20, 2013 at 5:28 AM, Felix A. Croes <felix at dworkin.nl> wrote:

> Blain <blain20 at gmail.com> wrote:
> > I would think that it'd be wiztool, code, wiztool code, etc. if I took
> out
> > the check for if(next == start).  Currently it's wiztool, code, code,
> code,
> > code, to infinity, so that check never fires.  ;o)  _code appears to have
> > itself as prev and next for some reason.  (I don't know why I was
> thinking
> > it was an LWO.)
>
> objregd.c:
>
>     object *links(string owner)
>     {
>         object *list, first, obj;
>
>         list = ({ });
>         first = links[owner];
>         if (first) {
>             obj = first;
>             do {
>                 list += ({ obj });
>                 obj = obj->_Q_next();
>             } while (obj != first);
>         }
>
>         return list;
>     }
>
> # code "/kernel/sys/objregd"->links("admin")
> $0 = ({ </kernel/obj/wiztool#23>, </usr/admin/_code> })
>
> Regards,
> Felix Croes
> ____________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
>



More information about the DGD mailing list