[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the forward method [dynamic vs. static typing]



On 2003-12-10T16:35:25-0500, FranklinChen@cmu.edu wrote:
> >     data SuperList a = SuperList a (SuperList [a])
> I'm curious what you think about the following.

I think the following, but C++ can't:

template <class T>
struct super_list
{
    T t;
    super_list<vector<T> > children;
};

-- 
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
International Human Rights Day * 2003-12-10 * http://www.un.org/rights/

What if All Chemists Went on Strike? (science fiction)
http://www.iupac.org/publications/ci/2003/2506/iw3_letters.html

Attachment: signature.asc
Description: Digital signature