Re: [U2] The CONTINUE statement

2012-04-29 Thread Brian Leach
Laura

Bad girl. 

GOTO TheNaughtyStep 

:)

Brian

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Laura Hirsh
Sent: 28 April 2012 04:23
To: 'U2 Users List'
Subject: Re: [U2] The CONTINUE statement

You are so right. Thank you John!

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Hatherill
Sent: Friday, April 27, 2012 3:24 PM
To: U2 Users List
Subject: Re: [U2] The CONTINUE statement


Good for you for speaking up. 
Like so many things. It's not the Tool that's good or bad, its how and why
it's used.
Spaghetti code did not end with the banishment of GOTO's. It just got a new
set of clothes. ;)


John Hatherill


-Original Message-
From: Laura Hirsh [mailto:la...@lhirsh.org]
Sent: Friday, April 27, 2012 10:59 AM
To: 'U2 Users List'
Subject: Re: [U2] The CONTINUE statement

OK. I'm going to come clean. At the cost of my reputation, and future
projects. I LIKE GOTO! Sadly (for me), because all of the negative press
this four letter word receives I don't use it anymore. No need to comment,
or start a flame war, I just thought I'd fess up! :)

Laura Hirsh

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] Backspace sends break signal in UV

2012-04-29 Thread Bob Little
I know someone asked about this recently but I cannot locate the thread that 
provided the solution.

I have UV PE set up here on Linux.  If I am in the UV account and LOGTO my 
development account, I get the Rocket banner then I'm at TCL.  At this point, 
any time the backspace key is pressed, it sends a break signal instead of the 
backspace character.

This only happens if I LOGTO this account from any other account.  I can change 
to the account's directory and invoke a uv session right from there and 
everything is fine.

Anyone know what the solution is?

Thanks,

bob little

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Backspace sends break signal in UV

2012-04-29 Thread LeRoy Dreyfuss
Bob,

You can either remap the keyboard in your emulator or use the PTERM cmd.

Regards,

LeRoy
Sent from my iPhone 4

On Apr 29, 2012, at 7:39 AM, Bob Little b...@marketamerica.com wrote:

 I know someone asked about this recently but I cannot locate the thread that 
 provided the solution.
 
 I have UV PE set up here on Linux.  If I am in the UV account and LOGTO my 
 development account, I get the Rocket banner then I'm at TCL.  At this point, 
 any time the backspace key is pressed, it sends a break signal instead of the 
 backspace character.
 
 This only happens if I LOGTO this account from any other account.  I can 
 change to the account's directory and invoke a uv session right from there 
 and everything is fine.
 
 Anyone know what the solution is?
 
 Thanks,
 
 bob little
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] The CONTINUE statement

2012-04-29 Thread Laura Hirsh
LOL! Thanks Brian. 

:)

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach
Sent: Sunday, April 29, 2012 6:56 AM
To: 'U2 Users List'
Subject: Re: [U2] The CONTINUE statement

Laura

Bad girl. 

GOTO TheNaughtyStep 

:)

Brian

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Laura Hirsh
Sent: 28 April 2012 04:23
To: 'U2 Users List'
Subject: Re: [U2] The CONTINUE statement

You are so right. Thank you John!

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Hatherill
Sent: Friday, April 27, 2012 3:24 PM
To: U2 Users List
Subject: Re: [U2] The CONTINUE statement


Good for you for speaking up. 
Like so many things. It's not the Tool that's good or bad, its how and why
it's used.
Spaghetti code did not end with the banishment of GOTO's. It just got a new
set of clothes. ;)


John Hatherill


-Original Message-
From: Laura Hirsh [mailto:la...@lhirsh.org]
Sent: Friday, April 27, 2012 10:59 AM
To: 'U2 Users List'
Subject: Re: [U2] The CONTINUE statement

OK. I'm going to come clean. At the cost of my reputation, and future
projects. I LIKE GOTO! Sadly (for me), because all of the negative press
this four letter word receives I don't use it anymore. No need to comment,
or start a flame war, I just thought I'd fess up! :)

Laura Hirsh

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Backspace sends break signal in UV

2012-04-29 Thread Wjhonson
Bob at TCL type PTERM during a session where the backspace does a break, and 
post the text of that to us
It's very likely that you have the INTR defined as your backspace

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] The CONTINUE statement

2012-04-29 Thread Keith Johnson [DATACOM]
Just to be annoyingly pedantic - the second code snippet is missing an END


FOR I = 1 TO X
   do something
   IF some condition THEN CONTINUE
   do something else
NEXT I

Versus

FOR I = 1 TO X
   do something
   IF NOT(some condition) THEN
  do something else
NEXT I




___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] The RETURN TO statement was the CONTINUE statement

2012-04-29 Thread Keith Johnson [DATACOM]
Hi Wil,

They can't do that because then their line editor would break - It has 58 
occurances of RETURN TO


Message: 27
Date: Fri, 27 Apr 2012 08:38:05 -0400 (EDT)
From: Wjhonson wjhon...@aol.com
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] The RETURN TO statement was the CONTINUE statement
Message-ID: 8cef289ba33f8cc-bd4-7...@webmail-m082.sysops.aol.com
Content-Type: text/plain; charset=us-ascii


 Perhaps we could start a petition to get Rocket to state in their 
 documentation
The RETURN TO statement is deprecated and will be forbidden in release 12


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] RETURN TO (again)

2012-04-29 Thread Keith Johnson [DATACOM]
I never used it in anger, but I was rather drawn to the Presley-friendly form

SENDER: RETURN TO SENDER

I actually used the following progam a long time ago, but only to test that 
EQU...LIT... workedhow I thought it did.

Try it - Press T a few times then X and watch it unwind the call stack.


001:  EQU ABANDON LIT 'RETURN TO SENDER'
002:  CRT 'START OF PROGRAM'
003:  GOSUB TEST
004:  CRT 'RETURN FROM TEST'
005:  STOP
006: SENDER:
007:  CRT 'NOW AT SENDER'
008:  ABANDON
009:  CRT 'END OF SENDER'
010:  STOP
011: TEST:
012:  LOOP
013: CRT 'AT TEST ':
014: INPUT BACK,1
015: BACK = UPCASE(BACK)
016: IF BACK EQ 'T' THEN GOSUB TEST
017: IF BACK EQ 'X' THEN ABANDON
018:  WHILE BACK DO
019: CRT 'STILL IN TEST'
020:  REPEAT
021:  CRT 'END OF TEST'
022:  RETURN

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users