Simon,

These are both great suggestions, and I'll see if I can get them 
implemented.  I did not know about generated functions until seeing your 
post.  Thanks for the feedback!

-- Steve Vavasis


On Monday, June 1, 2015 at 5:57:19 PM UTC-4, Simon Byrne wrote:
>
> 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.
>>
>>
>>

Reply via email to