extension operators - possible?

32 views
Skip to first unread message

Chris Anders

unread,
Nov 18, 2016, 5:57:47 AM11/18/16
to Nemerle Forum
hi, 

i want to add the << and >> operator to the existing stream class to have the same syntax like in c.  is that possible on existiexcisting classes and how can i implement it? 

Arseniy Karpov

unread,
Nov 18, 2016, 10:09:51 AM11/18/16
to Nemerle Forum
Hi.

yes, you can implement it by opening modules.
something like this: https://gist.github.com/stdray/355cfbed30419dd0fd69efbbd1e91700

пятница, 18 ноября 2016 г., 13:57:47 UTC+3 пользователь Chris Anders написал:
Reply all
Reply to author
Forward
0 new messages