Thread overview | |||||
---|---|---|---|---|---|
|
June 30, 2006 Nested function seems unoverloadable | ||||
---|---|---|---|---|
| ||||
void a(uint v) {}
void a(void* v) {}
void main()
{
void b(uint v){}
void b(void* v){} //reports an error
}
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
July 07, 2006 Re: Nested function seems unoverloadable | ||||
---|---|---|---|---|
| ||||
Posted in reply to Artem Rebrov Attachments: | Artem Rebrov schrieb am 2006-06-30: > > void a(uint v) {} > void a(void* v) {} > > void main() > { > void b(uint v){} > void b(void* v){} //reports an error > } http://www.digitalmars.com/d/function.html # Unlike module level declarations, declarations within function scope are # processed in order. Thomas |
July 10, 2006 Re: Nested function seems unoverloadable | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | Thomas Kuehne wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Artem Rebrov schrieb am 2006-06-30: <snip> >> void main() >> { >> void b(uint v){} >> void b(void* v){} //reports an error >> } > > http://www.digitalmars.com/d/function.html > > # Unlike module level declarations, declarations within function scope are > # processed in order. What has that to do with anything? Stewart. |
Copyright © 1999-2021 by the D Language Foundation