Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!abvax!iccgcc!browns From: browns@iccgcc.decnet.ab.com (Stan Brown) Newsgroups: comp.lang.c Subject: Re: function composition in C Message-ID: <3454.27ca9706@iccgcc.decnet.ab.com> Date: 26 Feb 91 22:12:38 GMT References: <6873@munnari.oz.au> <9754@uwm.edu> Followup-To: comp.lang.c Lines: 16 In article <6873@munnari.oz.au> aet@felix.ee.mu.OZ.AU (bert) writes: > Does anyone know how to write a compose function in C, >without writing a Scheme interpreter to do it in. > >A call should look something like this: > (compose(sqr,cube)) (2) >which would evaluate to 64. Okay, this is so obvious that there must be a reason why you're _not_ doing it: sqr(cube(2)); I must not understand what question you're asking. My opinions are mine: I don't speak for any other person or company. email: browns@iccgcc.decnet.ab.com Stan Brown, Oak Road Systems, Cleveland, Ohio, USA +1 216 371 0043