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 (74) [Avatar] Offline
Good idea. I will try to incorporate that, thanks!