Re: Enumerated data types

jejones@microware.com (James Jones)
Mon, 27 Aug 90 09:18:52 CDT

          From comp.compilers

Related articles
Enumerated data types mandel@forwiss.uni-passau.de (1990-08-23)
Re: Enumerated data types moss@cs.umass.edu (1990-08-24)
Re: Enumerated data types skrenta@amix.commodore.com (1990-08-15)
Re: Enumerated data types dik@cwi.nl (1990-08-24)
Re: Enumerated data types ok@goanna.cs.rmit.OZ.AU (1990-08-27)
Re: Enumerated data types jejones@microware.com (1990-08-27)
Re: Enumerated data types perelgut@turing.toronto.edu (1990-08-24)
Re: Enumerated data types dik@cwi.nl (1990-08-27)
Re: Enumerated data types grover@brahmand.Eng.Sun.COM (1990-08-28)
Re: Enumerated data types corbett@lupa.Eng.Sun.COM (1990-08-29)
Re: Enumerated data types pjj@cs.man.ac.uk (Pete Jinks) (1990-08-29)
Re: Enumerated data types kurt@tc.fluke.COM (1990-08-29)
[1 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers
From: jejones@microware.com (James Jones)
In-Reply-To: <1990Aug23.134826.2865@forwiss.uni-passau.de>
Keywords: types, design
Organization: Microware Systems Corp., Des Moines, Iowa
Date: Mon, 27 Aug 90 09:18:52 CDT

In article <1990Aug23.134826.2865@forwiss.uni-passau.de> Luis Mandel writes:
>[query about enumerated types with name clashes]


If I remember rightly, Russell has enumerated types. Since constants in
Russell are linguistically 0-ary functions, figuring out whether a given
instance of "red" would in full Russell be bike_colours$red[] or
car_colour$red[] is a particular case of the type inference problem, and
the same kind of context (i.e. how is the result used?) would be used to
decide whether succ[red] is bike_colours$succ[bike_colours$red[]] or ...
well, you get the idea. :-)


The BSD version of Russell had a kind of convoluted but usually workable
heuristic for type inference. Hans Boehm showed that the problem of type
inference is undecidable, but I think he's recently written a paper that
appeared in SIGPLAN Notices that perhaps gives a useful subset of the
problem that's easier to figure out. I hope that a new Russell or language
like it appears that implements such work, because Russell is, IMHO, a
very spiffy language and merits study by any would-be language designer.


James Jones
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.