[DGD] Circular Object Links

Blain blain20 at gmail.com
Sat Apr 20 22:51:25 CEST 2013


On Apr 21, 2013 2:14 AM, "Raymond Jennings" <shentino at gmail.com> wrote:
>
> Don't forget our chat about the differences between blueprints, clones,
and
> lwo's

Yeah, I was tired and frustrated.  Part of my confusion came from just
reading the archives and not the docs and klib to know exactly what using
source entailed and allowed.  I have to get used used to all these new toys
Felix has provided, to the point they become second nature like all of the
features shared between drivers already are.  Staying up for 18 hours
didn't help much either!

> Anything you compile is a master object/blueprint
> you clone_object on a master to create a clone
> you new_object on a master to create an lwo, or you new_object on an lwo
to
> create a copy of it.
>
> Bear in mind also that the kernel library will force you to use specific
> paths for inheritables, clonables and lwoables.  Among other things it can
> help you avoid confusing them

Right, and the location of /usr/admin/_code should've keyed me in on its
status as a non-lwo.  I have kept the klib's directory enforcement intact.

>
> On Sat, Apr 20, 2013 at 3:35 AM, Blain <blain20 at gmail.com> wrote:
>
> > 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
> > >
> > ____________________________________________
> > https://mail.dworkin.nl/mailman/listinfo/dgd
> >
> ____________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd



More information about the DGD mailing list