Re: Python-like with, context managers, and the RAII pattern

2017-09-28 Thread pgmf
@wizzardx and @Ar , it's wonderful to have this feature. Thanks for the code snippets.

Re: Nim in Action print book is 50% off today

2017-09-02 Thread pgmf
Thanks Dom96. I bought the ebook version from Manning couple of weeks ago. I am going to start reading/learning 'Nim in Action' once I finish the online tutorial. I am really looking forward for this.

Re:

2017-08-29 Thread pgmf
Thanks a mil @LeuGim, for the detailed answer. This is super helpful. I will play around with them more by keeping your points in my mind.

" ref object of " - when to use

2017-08-29 Thread pgmf
Another newbie q? sorry, this is the second thread I am starting in 2 days. I am wondering which are the ideal scenarios to use **'ref' to an object** in the type declaration. Is 'ref' should be always used or only when class inheritance functionality is used. Are there some best practices which

Re: Question regarding the setter method/proc

2017-08-28 Thread pgmf
Thanks again @Lando for confirming this. It more clear to me now. Best Regards

Re: Question regarding the setter method/proc

2017-08-28 Thread pgmf
@Lando, Many thanks for your reply, much appreciated. I was really confused. This is how I understand the concept from your reply. Please correct me if I am wrong. * if ' s.host = 34 ' is called from the _same module_, it will directly access the object variable bypassing the 's.host=' method

Re: Question regarding the setter method/proc

2017-08-28 Thread pgmf
Aplologies, there was an error in my program, corrected now. My question still stands though. Thanks.

Question regarding the setter method/proc

2017-08-28 Thread pgmf
Hello all, A newbie here. I have been learning Nim using the online tutorials and is thoroughly enjoying Nim . I have completed the part 1 and have advanced to Part 2 of the tutorial. Have a question regarding the setter methods discussed in the 'Properties' section of the tutorial. Can you ple