That's some impressive metaprogramming. In v0.4, you should be able to do this without the "maker" functions, using generated functions http://julia.readthedocs.org/en/latest/manual/metaprogramming/#generated-functions
As far as an interface goes, I would suggest a macro, e.g. so that the user could write something like @modify! a[i].field = new On Monday, 1 June 2015 03:09:29 UTC+1, [email protected] wrote: > > Following up on an earlier discussion that I started in this newsgroup, I > have written a small package that provides a routine to modify a field of > an immutable object in the case that the object is inside a container. > Please refer to: > > https://github.com/StephenVavasis/Modifyfield.jl > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FStephenVavasis%2FModifyfield.jl&sa=D&sntz=1&usg=AFQjCNEMQeocqbzVy4CBDgPjAQNZhmq8Fg> > > Feedback is welcome. > > >
