--- In [email protected], Brett McCoy <idragos...@...> wrote:

> >
> > extern struct DATA *initialize_list(const DATA *llist);
> > extern struct ENTRY *initialize_list(const ENTRY *llist);
> 
> Personally I'd take this a step further and use classes for this kind
> of thing, so you don't have to deal with function overloading like
> this... you're already using C++, so why not? It will make your life a
> lot easier, believe me.
> 
> -- Brett

So I do something like this?

class Data
{
public:
    Data(char *);
    ~Data();
    DATA *initialize_DATA_list(void);
    DATA *append_list(DATA *origlist, char *newdata);

private:
    DATA {
        DATA         *next;
        DATA         *nextNodeID;
        long int     nodeID;
        char         *data;
    };
    DATA dataval;
};



Reply via email to