overload conversion operator

40 views
Skip to first unread message

Chris Anders

unread,
Nov 18, 2016, 3:15:21 PM11/18/16
to Nemerle Forum
hi, how can i overload the conversion operator?

NN

unread,
Nov 29, 2016, 2:34:20 AM11/29/16
to Nemerle Forum
Very simple:

class A
{
public static @:(a: A) : int { 0 } // implicit

public static @:>(a: A) : int { 0 } // explicit
Reply all
Reply to author
Forward
0 new messages