Even that still blocks. Need a way of not waiting for the port data if nothing is there. A way to just continue processing the rest of the forever loop which should be continously print the current value of x. Maybe, I need to see an example of something that works.
Paul Tretter ----- Original Message ----- From: "Andreas Bolka" <[EMAIL PROTECTED]> To: "Paul Tretter" <[EMAIL PROTECTED]> Sent: Sunday, February 22, 2004 6:41 PM Subject: [REBOL] Re: No-wait > > > Sunday, February 22, 2004, 10:42:06 PM, Paul wrote: > > > Problem is that when I try copy I get: > > > ** Script Error: Cannot use copy on this type port > > ** Where: forever > > ** Near: data: copy port > > Your example was: > > port: open/direct/no-wait tcp://:7000 > x: 0 > forever [ > print x + 1 > x: x + 1 > data: first wait port > ; HERE > ] > > At the point I marked with HERE, you have a _server_ port bound to the > word 'port and a _client_ port bound to 'data. Basically, > > data: first wait port > > _accepts_ a new client. After HERE you can do copy on 'data, e.g.: > > tmp: copy data > > and copy will behave here, as Maarten described. > > -- > Best regards, > Andreas > > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004 -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.