Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
June 14, 2002 errno | ||||
---|---|---|---|---|
| ||||
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 |
June 14, 2002 Re: errno | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin M. Pedersen | 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 > > > |
June 15, 2002 Re: errno | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | 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 D > > code. > > > > > > Regards, > > Martin M. Pedersen > > > > > > > > |
June 15, 2002 Re: errno | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | 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 regular > D > > > code. > > > > > > > > > Regards, > > > Martin M. Pedersen > > > > > > > > > > > > > > > |
June 15, 2002 Re: errno | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | 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 > regular > > D > > > > code. > > > > > > > > > > > > Regards, > > > > Martin M. Pedersen > > > > > > > > > > > > > > > > > > > > > > > > |
June 16, 2002 Re: errno | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | 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.
|
Copyright © 1999-2021 by the D Language Foundation