D - errno
- "Martin M. Pedersen" <mmp www.moeller-pedersen.dk> Jun 14 2002
- "Walter" <walter digitalmars.com> Jun 14 2002
- "Matthew Wilson" <dmd synesis.com.au> Jun 14 2002
- "Walter" <walter digitalmars.com> Jun 15 2002
- "Matthew Wilson" <dmd synesis.com.au> Jun 15 2002
- Pavel Minayev <evilone omen.ru> Jun 16 2002
Hi,
Walter, how abort adding:
void seterrno(int);
int geterrno();
to c.stdlib in Phobos, or introduce c.errno.
It would introduce bad practices to access it using extern(C) in regular D
code.
Regards,
Martin M. Pedersen
Jun 14 2002
That's a good idea, since D won't support the ugly C errno macro. "Martin M. Pedersen" <mmp www.moeller-pedersen.dk> wrote in message news:aed9pj$c0v$1 digitaldaemon.com...Hi, Walter, how abort adding: void seterrno(int); int geterrno(); to c.stdlib in Phobos, or introduce c.errno. It would introduce bad practices to access it using extern(C) in regular D code. Regards, Martin M. Pedersen
Jun 14 2002
Will the value be thread-local? "Walter" <walter digitalmars.com> wrote in message news:aedecc$gn8$2 digitaldaemon.com...That's a good idea, since D won't support the ugly C errno macro. "Martin M. Pedersen" <mmp www.moeller-pedersen.dk> wrote in message news:aed9pj$c0v$1 digitaldaemon.com...Hi, Walter, how abort adding: void seterrno(int); int geterrno(); to c.stdlib in Phobos, or introduce c.errno. It would introduce bad practices to access it using extern(C) in regular
code. Regards, Martin M. Pedersen
Jun 14 2002
It would just provide an interface to the thread local C errno. "Matthew Wilson" <dmd synesis.com.au> wrote in message news:aee3ho$15gg$1 digitaldaemon.com...Will the value be thread-local? "Walter" <walter digitalmars.com> wrote in message news:aedecc$gn8$2 digitaldaemon.com...That's a good idea, since D won't support the ugly C errno macro. "Martin M. Pedersen" <mmp www.moeller-pedersen.dk> wrote in message news:aed9pj$c0v$1 digitaldaemon.com...Hi, Walter, how abort adding: void seterrno(int); int geterrno(); to c.stdlib in Phobos, or introduce c.errno. It would introduce bad practices to access it using extern(C) in
Dcode. Regards, Martin M. Pedersen
Jun 15 2002
Cool. btw, can I ask what the state of play with threads & D is? "Walter" <walter digitalmars.com> wrote in message news:aeg2in$df2$3 digitaldaemon.com...It would just provide an interface to the thread local C errno. "Matthew Wilson" <dmd synesis.com.au> wrote in message news:aee3ho$15gg$1 digitaldaemon.com...Will the value be thread-local? "Walter" <walter digitalmars.com> wrote in message news:aedecc$gn8$2 digitaldaemon.com...That's a good idea, since D won't support the ugly C errno macro. "Martin M. Pedersen" <mmp www.moeller-pedersen.dk> wrote in message news:aed9pj$c0v$1 digitaldaemon.com...Hi, Walter, how abort adding: void seterrno(int); int geterrno(); to c.stdlib in Phobos, or introduce c.errno. It would introduce bad practices to access it using extern(C) in
Dcode. Regards, Martin M. Pedersen
Jun 15 2002
On Sun, 16 Jun 2002 09:24:40 +1000 "Matthew Wilson" <dmd synesis.com.au> wrote:Cool. btw, can I ask what the state of play with threads & D is?
See class Thread in thread.d of Phobos. Also synchronized-blocks help a lot.
Jun 16 2002








Pavel Minayev <evilone omen.ru>