> On Oct 6, 2016, at 3:31 PM, Henry Rich <[email protected]> wrote:
> 
> Not so fast.  What about
> 
> 'a b c' =: i. 3
> (somenoun) =: somevalue
> (+: [ 4!:55@((<'fred')"_)) fred =: 5
> 
> In fact, the verb left of the assignment MUST touch the assigning value 
> directly.

They touch the value, sure.  Directly?  Depends on your definition.
To my understanding (please correct me if it's false) as long as
   (+: [ 4!:55@((<'fred')"_)) fred =: 5
and the following two sentences
   fred =: 5
   (+: [ 4!:55@((<'fred')"_)) fred
have the same overall effect, which they do, you only need usecount to be one.
Maybe that would require a lot of changes in the code, but I don't see any 
thing wrong with this.
In fact, what ever garbage collection you do now after the completion of one 
sentence, you can do after the completion of one assignment.  Because =: and =. 
are not verb and can't be in a train, anything to the right of =: or =. will 
never be directly used without a name given at the left of =: or =.


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to