Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!paperboy!hsdndev!spdcc!ima!dirtydog!karl From: karl@ima.isc.com (Karl Heuer) Newsgroups: comp.lang.misc Subject: Re: On whether C has first-class composable functions Message-ID: <1991Jan22.200615.4518@dirtydog.ima.isc.com> Date: 22 Jan 91 20:06:15 GMT References: <442@data.UUCP> <4408:Jan421:44:3391@kramden.acf.nyu.edu> <298@smds.UUCP> Sender: news@dirtydog.ima.isc.com (NEWS ADMIN) Organization: Interactive Systems Lines: 12 In article Benjamin Chase writes: >[defend the idea that compose() should be polymorphic] Well, if you put it that way, then C doesn't even have a way to write a function% to add two numbers together, since you have to decide at compile-time what the domain and range will be. Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint ________ % To avoid trivial macro solutions: I want to be able to take the address of the resulting function. No fair converting everything to double, either; I may have a machine where some large integers can't be represented as floats.