Re: Why can't functions and struct types have the same name?

2015-01-26 Thread Joakim via Digitalmars-d-learn
On Monday, 26 January 2015 at 11:30:00 UTC, Daniel Kozak wrote: On Monday, 26 January 2015 at 11:15:26 UTC, Joakim wrote: Right now, I had to go through and selectively import all 14 symbols I needed from the 3 druntime modules that publicly import core.sys.posix.sys.socket, so that the functio

Re: Why can't functions and struct types have the same name?

2015-01-26 Thread Nicholas Wilson via Digitalmars-d-learn
On Monday, 26 January 2015 at 11:15:26 UTC, Joakim wrote: Right now, any attempt to have symbols with the same name errors out, regardless of how they're used. This caused a problem for me because I'm trying to use a third-party C library that defines a struct type called "socket" and my code

Re: Why can't functions and struct types have the same name?

2015-01-26 Thread Daniel Kozak via Digitalmars-d-learn
On Monday, 26 January 2015 at 11:15:26 UTC, Joakim wrote: Right now, any attempt to have symbols with the same name errors out, regardless of how they're used. This caused a problem for me because I'm trying to use a third-party C library that defines a struct type called "socket" and my code

Why can't functions and struct types have the same name?

2015-01-26 Thread Joakim via Digitalmars-d-learn
Right now, any attempt to have symbols with the same name errors out, regardless of how they're used. This caused a problem for me because I'm trying to use a third-party C library that defines a struct type called "socket" and my code calls that library and some networking modules from drunti