New proposal for easy sep/end options in print function

59 views
Skip to first unread message

bil til

unread,
Oct 28, 2025, 12:21:52 AM (10 days ago) Oct 28
to lu...@googlegroups.com
Sorry to bother you again with this :) (follow-up to my post of Oct. 1).

New idea for easy "pimp up" of print function to allow easy separator
and line and adaption, easy also for "simple minded users":

If first one or two parameters given to print are strings STARTING
with a (currently NOT used) escape sequence "\s" or "\e" as first
chars, then the settings further strings there would modify print JUST
for this one invocation:

print( '\s,', '\e', ...)

would print some pars with CSV-separate ',', and without newline end... .

sepCSV= '\s,'
endOPEN= '\e'
print( sepCSV, endOPEN, ...)
print( sepCSV, ...)
print( endOPEN, ...)

also would work. This is completely threadsafe I and hope would
interpede also not other things... . (ase these 2 "escape chars"
currently unused?). And in Lua source code I can be adapt this
easily... .
Reply all
Reply to author
Forward
0 new messages