That seems like a reasonable way to do it.

On Fri, Mar 28, 2014 at 1:36 PM, David P. Sanders <dpsand...@gmail.com>wrote:

> Hi,
>
> I often need to share state (a collection of modificable variables)
> between functions.
> In Python and C++, I would do this by putting everything inside a class,
> and the class variables (attributes)
> would act as "pseudo-global" variables (an excellent description that a
> student in one of my courses once came up with!)
>
> What is the julian way of doing this? Put the state variables inside a new
> type and make all functions modify the variables inside that state object?
>
> Thanks,
> David.
>

Reply via email to