Thread overview
errno
Jun 14, 2002
Martin M. Pedersen
Jun 14, 2002
Walter
Jun 15, 2002
Matthew Wilson
Jun 15, 2002
Walter
Jun 15, 2002
Matthew Wilson
Jun 16, 2002
Pavel Minayev
June 14, 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



June 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
>
>
>


June 15, 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
D
> > code.
> >
> >
> > Regards,
> > Martin M. Pedersen
> >
> >
> >
>
>


June 15, 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
regular
> D
> > > code.
> > >
> > >
> > > Regards,
> > > Martin M. Pedersen
> > >
> > >
> > >
> >
> >
>
>


June 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
> regular
> > D
> > > > code.
> > > >
> > > >
> > > > Regards,
> > > > Martin M. Pedersen
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


June 16, 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.