1 Dec 01:05
RE: See the Moraine Fingerprints of the Primordial Bit
I was wondering just how you'd slip that INPUT$ in there, and without using a string variable at that; very nice! You two are definitely the masters of arcane and unintuitive code. mike ******************************************************************************* ---------- From: Comet[SMTP:com3t@...] Sent: Monday, November 30, 2009 10:53 AM To: <m100@...> Subject: Re: See the Moraine Fingerprints of the Primordial Bit Am I the only one who prefers the following line, which needs less typing for the "press any key" construct. CLS:FORI%=239TO0STEP-1:LINE(0,0)-(I%,2^P EEK(1693)-1),I%:NEXT:I%=FRE(INPUT$(1)) I just reused I% so as not to clobber another variable; the FRE function returns a number <32768, so it will fit. Sent from my iPod On Nov 30, 2009, at 2:32 PM, "Ron Wiesen" <ronw@...> wrote: The BASIC statement shown below is generic because its 2^PEEK(1693)-1 phrase optimizes the perfomance based upon the laptop Model type (M10x or M200). CLS:FORI%=239TO0STEP-1:LINE(0,0)-(I%,2^P EEK(1693)-1),I%:NEXT:FORI%=0TO0STEP0:IFL(Continue reading)
:
> any advantage in this case to using IF LEN(INKEY$)=0 vs the usual, shorter,
> IF INKEY$="" ?
Nope. I didn't think about the IFINKEY$=""THEN construct or I would have used
it. But Comet has a construct that is nearly as short as yours.
Nevertheless, yours is the shortest Mike. See all in contrast below.
IFLEN(INKEY$)=0THEN Ron's construct (the loser by 4 keystrokes)
versus
I%=FRE(INPUT$(1)) Comet's construct (2nd place finish, by just a hair)
versus
IFINKEY$=""THEN Mike's construct (the winner by 1 keystroke)
Keeper of the Primordial Bit (born of the Big Bit Bang), -= Ron Wiesen =-
----- Original Message -----
From: "M H Stein" <
RSS Feed