Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: R: Re: Links ? Pointers ?

From: tim-johnsons:web at: 27-Aug-2009 18:28

* Maxim Olivier-Adlhoch <moliad-gmail.com> [090827 18:07]:
> so let's say this is what your app should be: > > person: context [ > uid: 666 > name: "me" > ] >
Hi Maxim: See employee/uid below:
> employee: context [ > uid: user/uid > title: "Workoholic" > ]
Should that be person/uid ? thanks tj
> managers: [ > ceo: employee/uid > ] > > now as you know, changing the uid in person won't be reflected in > employe or managers... so you're screwed! > > ---- > > Look at this modified version using function trick: > > person: context [ > uid: func [/set value][data: [#[none]] either set [data/1: value][data/1]] > name: "me" > ] > > employee: context [ > uid: get in person 'uid > title: "Workoholic" > ] > > managers: context [ > ceo: get in employee 'uid > ] > > >> person/uid/set 222 > == 222 > >> managers/ceo > == 222 > >> > > this is one way to use the function hack, but there are many others, > and they depend on the application itself. > > there are a few little details when using the hack, but usually, its > pretty invisible. > > Hope this helps :-) > > -MAx > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
-- Tim tim-johnsons-web.com http://www.akwebsoft.com