Article View: comp.lang.misc
Article #6793Re: Anyone want to design a language?
From: Darren New
Date: Thu, 22 Feb 1990 23:48
Date: Thu, 22 Feb 1990 23:48
10 lines
1018 bytes
1018 bytes
In article <14245@lambda.UUCP> jlg@lambda.UUCP (Jim Giles) writes:
>I) Recursive data types.
> As an example, consider a possible declaration of a binary tree
> data type (all examples are in a Fortran/C-ish syntax - that is,
> y = btree{3,x,btree{4,null,null}}
Ok. Now how do I write the declaration of a function that returns
a pointer to the first sub-tree with the value four at its root
without winding up with an aliased value? AND how do I do this
without using recursion? -- Darren
Technical Details
Message-ID:
<11911@nigel.udel.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!wuarchive!udel!newReferences:
<390@argosy.UUCP> <14245@lambda.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!wuarchive!udel!new From: new@udel.edu (Darren New) Newsgroups: comp.lang.misc Subject: Re: Anyone want to design a language? Message-ID: <11911@nigel.udel.EDU> Date: 22 Feb 90 23:48:29 GMT References: <390@argosy.UUCP> <14245@lambda.UUCP> Sender: usenet@udel.EDU Reply-To: new@udel.edu (Darren New) Distribution: usa Organization: University of Delaware Lines: 10