POV-Ray : Newsgroups : povray.off-topic : Programming language discussion : Re: Programming language discussion Server Time
4 Sep 2024 01:15:07 EDT (-0400)
  Re: Programming language discussion  
From: Darren New
Date: 27 Oct 2010 14:27:33
Message: <4cc86f15$1@news.povray.org>
Warp wrote:
> It's not a dynamic data container, like a list or a tree.

Remember that in Haskell these are defined recursively. So a "tree" in this 
case is union { struct { tree*left, tree*right }, struct { node data } }

A list is
union { struct {node data, list* next} , struct {node data} }

I.e., what he's calling "tree" would be "node of a tree" in C.

-- 
Darren New, San Diego CA, USA (PST)
   Serving Suggestion:
     "Don't serve this any more. It's awful."


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.