>From the Icon help files:
 
x1 @ C : x2 -- transmit value to co-expression 
x1 @ C activates C, transmitting the value of x1 to it; it produces the
outcome of activating C. 

@C : x -- activate co-expression 
@C produces the outcome of activating C. 


I found one example of the first syntax in the first edition of the Icon
Programming Language book, but I'm having trouble conceptualizing what it is
doing.  That example showed use of the &main keyword but no example was
given for use of the &source keyword.  The example was described in the book
as a "producer-consumer" implementation.


Please enlighten me:

I thought that co-expressions existed to permit using a result sequence
in a different place in the program from where it was defined.  The
"transmission" syntax suggests that I should extend this
conceptualization.  

What would you suggest?  

So far, I'm beginning to think of it like this:
  @C means something like "read from a pipe" - the "outcome" that it
produces, x, is the next result in the sequence of results produced by C
  x1@C means something like "write to a pipe"" - I have no idea what the
"outcome" that it produces, x2, is or how that outcome is affected by x1

how can I learn more about coexpressions in Unicon/Icon?

_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to