Re: context aware execution

2012-12-19 Thread Michael Torrie
On 12/19/2012 09:51 AM, Bart Thate wrote: > Think of sending JSON over the wire, reconstruct an object with it and then > let the object figure out what it can and cannot do in this external > environment. Probably the better way to do it is to formally define an API that lets an object discover t

Re: context aware execution

2012-12-19 Thread Bart Thate
Thanks for your response Chris ! Ha ! the job of the mad man is todo the things the are not "advisable" and see what gives. Like why it is not advisable and, if possible, their are ways to achieve things that are previously overseen. i already do a lot of travelling of the callstack to see from

Re: context aware execution

2012-12-19 Thread Wayne Werner
On Thu, 20 Dec 2012, Chris Angelico wrote: On Thu, Dec 20, 2012 at 2:57 AM, Bart Thate wrote: I want in a function or method determine the context of my caller and adapt the functionality accordingly. First off, please don't! Your code will be *extremely* confusing. Usually, the best way to

Re: context aware execution

2012-12-19 Thread Chris Angelico
On Thu, Dec 20, 2012 at 2:57 AM, Bart Thate wrote: > Hi All ! > > Is is possible and if yes, is it more easily possible (i am thinking f_back > maybe) to get the context of the caller when in a function ? > > Like to which variable name is this object assigned ? > > Or whatever of the callers cont