The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

mcampbell (12) [Avatar] Offline
I understand what is going on, but the

proc createMessage()

section neither creates a Message, nor takes one as a parameter. Perhaps this would be a good introduction to Nim's ability to overload the method; one with the username, message strings and one that takes a Message type?

The parseMessage at least returns a Message type.
dom96 (75) [Avatar] Offline
Good idea. I will try to incorporate that, thanks!