How to echo from a proc correctly?

2023-10-17 Thread Cleversn
Thanks all; I liked the .join method for now, but string formatting will also be useful in the future.

How to echo from a proc correctly?

2023-10-16 Thread Cleversn
Hi, beginner here. Consider the following code: import winim let myRange = 0..99 proc playAndWriteLN(audioFile, myStr: string) = # PlaySound is a procedure from the winim package, available on Windows only PlaySound(audioFile, 0, SND_NOSTOP) echo(m