Re: setMaxMailboxSize
On Thu, 17 Jun 2010 21:31:10 +, Byron Heads wrote: > is setMaxMailboxSize not implemented yet or is it bugged? It seems it got implemented today. :) http://www.dsource.org/projects/phobos/changeset/1662 You can use the SVN version of Phobos, or wait for the next release. -Lars
Re: ERROR - "cannot implicitly convert expression (s) of type int[3u] to int*"
Chick Corea wrote: [NOTE - sent twice as I was unsure that first attempt, pre-subscription, was received.] Working through the basics of D and running into simple problems that I cannot solve, such as: Error: cannot implicitly convert expression (s) of type int[3u] to int* Error: cannot implicitly convert expression (a) of type int[] to int* Those are the result of code that I pulled directly from the D v1 docs from http://www.digitalmars.com/d/1.0/arrays.html This was deprecated in 0.177, but the example code is out of date. http://d.puremagic.com/issues/show_bug.cgi?id=996 Stewart.
Re: ERROR - "cannot implicitly convert expression (s) of type int[3u] to int*"
On Fri, 18 Jun 2010 01:25:32 -0400, Chick Corea wrote: > Those are the result of code that I pulled directly from the D v1 docs from > > http://www.digitalmars.com/d/1.0/arrays.html > > Specifically, the code is this. > > int* p; > int[3] s; > int[] a; > p = s; > p = a; > I can't speak as to why the D2 code doesn't work, but this example in the documentation is flat out wrong. To assign a D array to a pointer, you must use the .ptr property, so that the correct code is actually: int* p; int[3] s; int[] a; p = s.ptr; p = a.ptr; Hope this clears things up.
shared-object libraries
Is it possible to build a shared-object library (dot so) with D ? The only instructions that I saw for building a library are on these OS pages, e.g., for linux: http://www.digitalmars.com/d/2.0/dmd-linux.html#library And they build static/archive libraries, not shared-object. Thanks. CHICKZ
Re: ERROR - "cannot implicitly convert expression (s) of type int[3u] to int*"
Stewart Gordon wrote: Chick Corea wrote: [NOTE - sent twice as I was unsure that first attempt, pre-subscription, was received.] Working through the basics of D and running into simple problems that I cannot solve, such as: Error: cannot implicitly convert expression (s) of type int[3u] to int* Error: cannot implicitly convert expression (a) of type int[] to int* Those are the result of code that I pulled directly from the D v1 docs from http://www.digitalmars.com/d/1.0/arrays.html This was deprecated in 0.177, but the example code is out of date. http://d.puremagic.com/issues/show_bug.cgi?id=996 Stewart. I've just checked in a fix.
Re: ERROR - "cannot implicitly convert expression (s) of type int[3u] to int*"
On Fri, 18 Jun 2010 08:41:17 -0700, Justin Spahr-Summers wrote: > > On Fri, 18 Jun 2010 01:25:32 -0400, Chick Corea > wrote: > > Those are the result of code that I pulled directly from the D v1 docs from > > > > http://www.digitalmars.com/d/1.0/arrays.html > > > > Specifically, the code is this. > > > > int* p; > > int[3] s; > > int[] a; > > p = s; > > p = a; > > > > I can't speak as to why the D2 code doesn't work, but this example in > the documentation is flat out wrong. To assign a D array to a pointer, > you must use the .ptr property, so that the correct code is actually: > > int* p; > int[3] s; > int[] a; > p = s.ptr; > p = a.ptr; > > Hope this clears things up. I followed up last night, but my post didn't show up until this morning. Sorry for the redundant answer! :X
aliasing templates
I remember that if you alias a template, it is instantiated and is compiled into the object file/library. What I can't remember is where in the d spec this behavior is described. Can anyone help me out? -- Mike L.