[DGD] FLS

Felix A. Croes felix at dworkin.nl
Wed Oct 4 23:10:07 CEST 2017


Blain <blain20 at gmail.com> wrote:

> I'm talking about one for each frame so that it goes away automatically
> when that frame goes away.  An example use is a variable for the current
> user/player/body in a given frame that is automatically rolled back when
> the frame ends and focus goes back to a previous frame, who's current
> user/player/body variable will then be on top.

This is more than what you called FLS, since it also involves setting a
new value for each frame, or else falling back to a value provided by a
previous frame.  I would describe that as stack-based, rather than
frame-based.

If you're looking for a this_player() equivalent, there is an example
implementation in the LP 2.4.5 mudlib simulation.  It doesn't use, but
could be done with, thread-local storage.

Regards,
Felix Croes



More information about the DGD mailing list