| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Something strange going o |
04-11-18 03:33 Shaun Bebbington wrote to All about Something strange going o
Howdy! Shaun,
SB> {at}MSGID:
SB> Hi,
SB> I found something odd today in the powerful CBM BASIC v2.0.
SB> Having worked with Sinclair BASIC quite a lot recently, I use GOTO X
SB> where X is a valid line number (i.e., LET X = 100). But I know that's
SB> not possible with Microsoft BASIC. Of course there is the ON X GO TO
SB> 100,200 ...
SB> So I thought "I know, I'll try and use a function, could CBM BASIC use
SB> this as a look up table". The following, I expected to go to the value
SB> in the function A() which returns 10, but...
SB> 0 DEF FN A(X) = 10
SB> 1 PRINT FN A(0)
SB> 2 GO TO FN A(0)
SB> 3 PRINT "END GRACEFULLY"
SB> 4 END
SB> 10 PRINT "STOP"
SB> 11 STOP
SB> Try it for yourself. What's going on here?
SB> Thanks in advance.
X isn't given a VALUE yet. I "think" (TM).
... Have you checked your smoke detector batteries & Fire Ext, LATELY?!
--- MultiMail/MS-DOS v0.49
* Origin: CCO BBS - capitolcityonline.net:26 (1:2320/105)SEEN-BY: 15/0 19/36 34/999 90/1 116/18 123/140 153/7715 218/700 220/60 222/2 SEEN-BY: 230/150 240/1120 250/1 261/38 100 266/404 512 267/155 275/100 SEEN-BY: 280/1027 282/1031 1056 291/1 111 320/119 219 340/400 342/13 393/68 SEEN-BY: 396/45 633/267 280 640/384 712/620 848 770/1 801/161 189 2320/100 105 SEEN-BY: 3634/12 5020/1042 @PATH: 2320/105 261/38 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.