Closed dumblob closed 9 years ago
Unfortunately, in Dao we can't simply unfold the tuple into 4 routine arguments
We can :)
load net
ip1 = net::IPv4Addr(127,0,0,1)
ip2 = net::IPv4Addr(ip1.octets, ...)
Hm, didn't try it with tuples, only lists. Only good news today :)
".octets(self: IPv4Addr) => tuple<int,int,int,int>"
should be somehow compatible with the constructor forIPv4Addr
as serializing IP tostring
and then back parsing to an IP address doesn't make much sense to me.Unfortunately, in Dao we can't simply unfold the tuple into 4 routine arguments, so we'll probably need to add another constructor overload.