Never mind. Confused left and right.

Charles Hixson charleshixsn at earthlink.net
Thu Jan 10 13:46:18 PST 2013


dnLftLnk is an array.

(It's still a confusing error message.  I assume that "[7LU]" indicates 
that it's an array, but if so, I don't know where it's documented.)

On 01/09/2013 06:36 PM, Charles Hixson wrote:
> ....$ dmd -unittest bptree.d
> Error: cannot implicitly convert expression (this.dnLftLnk) of type
> BPNode[7LU] to bptree.BPNode
>
> Type BPNode is only declared once, although the error message refers to:
> if (ndx == -1) node = dnLftLnk;
> a place where it is an out parameter in a function declared:
> bool search (BPKey key, out BPNode node, out int ndx)
> {
> ....
> }
>
> bptree.d is the name of the file that contains both the declaration and
> the function.
>
> The compiler version is:
> ....$ dmd
> DMD64 D Compiler v2.060
>
> The environment is linux (debian testing).



More information about the Digitalmars-d-learn mailing list