Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simplistic misunderstanding about ; + "" in a print
#7
No.  The reason is just ease of translating.

PRINT "abc"; 123; TAB(4); USING "###.###", 12.34

Now, try and use concatenation to add all that together into one line to print, word wrap, and screen scroll with.   ...   I'm waiting...   Complex as heck, isn't that concept!

Now, just break it down as independent print statements.
PRINT "abc";
PRINT 123;
PRINT TAB(4);
PRINT USING "###.###", 12.34

Now THOSE are all simple to process and understand...  but that's 4 calls to print, 4 calls to word wrap, 4 calls to screen scroll, 4 calls to free temp variables...

Whereas, as I pointed out above, PRINT a$ + b$ + c$ + d$ only does those things once after it adds the strings together.
Reply


Messages In This Thread
RE: simplistic misunderstanding about ; + "" in a print - by SMcNeill - 09-19-2024, 01:07 PM



Users browsing this thread: 7 Guest(s)