Kevin,

Sorry, I'm not understanding your point.  Can you give me an example in 
which the modifyField! routine might fail?  It is completely standard Julia 
without any pointer manipulation or other unsafe operations.

Thanks,
Steve




On Monday, June 1, 2015 at 12:16:41 PM UTC-4, Kevin Squire wrote:
>
> Whoops!  I meant "not in a register", not "not on the stack". 
>
> On Monday, June 1, 2015, Kevin Squire <[email protected] <javascript:>> 
> wrote:
>
>> As pointed out by Jameson previously, this works best (well, only) if you 
>> can guarantee that the object is in memory and not on the stack--for 
>> example, if the object was allocated by a C routine. 
>>
>> Cheers,
>>    Kevin 
>>
>> On Sunday, May 31, 2015, <[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
>>>
>>> Feedback is welcome.
>>>
>>>
>>>  

Reply via email to