Fighting compiler - experienced programmer but D novice

2014-06-02 Thread Charles Parker via Digitalmars-d-learn
./graph_structures.d(124): Error: class graph_structures.node(D, E) is used as a type I have no idea what this means:( Once we create a class, the textbook examples show its use as a type which I believe is what C++ Java allow. Here's some code: class node(D, E) { int nid; D data;

Re: Fighting compiler - experienced programmer but D novice

2014-06-02 Thread Charles Parker via Digitalmars-d-learn
On Tuesday, 3 June 2014 at 03:35:46 UTC, Chris Cain wrote: On Tuesday, 3 June 2014 at 03:17:10 UTC, Charles Parker wrote: ... Thanx for any help - Charlie Well one thing is that you don't need the type parameters on the this function. You're basically creating a templated this inside the

Building and using a function library

2014-05-25 Thread Charles Parker via Digitalmars-d-learn
What does this error mean? ./min_cut.d(15): Error: module line_count from file ../my_utils/line_count.d must be imported as module 'line_count' My directory structure in question is: .../D /min_cut which contains min_cut.d which I'm building /my_utils which contains line_count.d

Re: Building and using a function library

2014-05-25 Thread Charles Parker via Digitalmars-d-learn
On Sunday, 25 May 2014 at 19:14:05 UTC, Adam D. Ruppe wrote: On Sunday, 25 May 2014 at 19:07:10 UTC, Charles Parker wrote: ./min_cut.d(15): Error: module line_count from file ../my_utils/line_count.d must be imported as module 'line_count' That means you forgot the module line in