Re: How can i find my LAN IP Address using std.socket?

2024-02-17 Thread Forest via Digitalmars-d-learn
On Tuesday, 4 February 2014 at 13:02:26 UTC, TheFlyingFiddle wrote: I'm trying to find my own ip address using std.socket with little success. How would i go about doing this? (It should be a AddressFamily.INET socket) Sadly, the standard library doesn't seem to offer network interface

Re: length's type.

2024-02-17 Thread Siarhei Siamashka via Digitalmars-d-learn
On Wednesday, 14 February 2024 at 00:56:21 UTC, Kevin Bailey wrote: Personally, I don't have a problem with .length being unsigned. How do you have a negative length? My problem is that the language doesn't correctly compare signed and unsigned. The length itself is technically the index of a