Re: shared/unshared classes

2011-02-20 Thread Jonathan M Davis
On Sunday 20 February 2011 05:36:25 spir wrote: > On 02/20/2011 04:41 AM, Jonathan M Davis wrote: > > On Saturday 19 February 2011 19:12:17 Jonathan M Davis wrote: > >> On Saturday 19 February 2011 19:01:16 Steven Schveighoffer wrote: > >>> On Sat, 19 Feb 2011 21:55:53 -0500, Jonathan M Davis > >>>

Re: shared/unshared classes

2011-02-20 Thread spir
On 02/20/2011 04:41 AM, Jonathan M Davis wrote: On Saturday 19 February 2011 19:12:17 Jonathan M Davis wrote: On Saturday 19 February 2011 19:01:16 Steven Schveighoffer wrote: On Sat, 19 Feb 2011 21:55:53 -0500, Jonathan M Davis wrote: On Saturday 19 February 2011 18:26:25 Steven Schveighoff

Re: shared/unshared classes

2011-02-20 Thread Johannes Pfau
Steven Schveighoffer wrote: >On Sat, 19 Feb 2011 21:55:53 -0500, Jonathan M Davis > wrote: > >> On Saturday 19 February 2011 18:26:25 Steven Schveighoffer wrote: >>> I was working on an I/O library that I plan to use in development, >>> and possibly submit to phobos, and I thought of this case. >>>

Re: shared/unshared classes

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 19:12:17 Jonathan M Davis wrote: > On Saturday 19 February 2011 19:01:16 Steven Schveighoffer wrote: > > On Sat, 19 Feb 2011 21:55:53 -0500, Jonathan M Davis > > > > > > wrote: > > > On Saturday 19 February 2011 18:26:25 Steven Schveighoffer wrote: > > >> I was workin

Re: shared/unshared classes

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 19:01:16 Steven Schveighoffer wrote: > On Sat, 19 Feb 2011 21:55:53 -0500, Jonathan M Davis > > wrote: > > On Saturday 19 February 2011 18:26:25 Steven Schveighoffer wrote: > >> I was working on an I/O library that I plan to use in development, and > >> possibly submi

Re: shared/unshared classes

2011-02-19 Thread Steven Schveighoffer
On Sat, 19 Feb 2011 21:55:53 -0500, Jonathan M Davis wrote: On Saturday 19 February 2011 18:26:25 Steven Schveighoffer wrote: I was working on an I/O library that I plan to use in development, and possibly submit to phobos, and I thought of this case. A standard file can be shared or unshar

Re: shared/unshared classes

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 18:26:25 Steven Schveighoffer wrote: > I was working on an I/O library that I plan to use in development, and > possibly submit to phobos, and I thought of this case. > > A standard file can be shared or unshared. In C, since there is no notion > of shared/unshared, e

shared/unshared classes

2011-02-19 Thread Steven Schveighoffer
I was working on an I/O library that I plan to use in development, and possibly submit to phobos, and I thought of this case. A standard file can be shared or unshared. In C, since there is no notion of shared/unshared, everything is shared. So any writes/reads from a FILE * lock the obje