From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107f24,da9dc1940932b53f,start X-Google-Attributes: gid107f24,public X-Google-Thread: 103376,da9dc1940932b53f,start X-Google-Attributes: gid103376,public From: winikoff@mundook.cs.mu.OZ.AU (Michael David WINIKOFF) Subject: Re: Advanture of Functional Date: 1996/12/05 Message-ID: <585rpo$kqg@mulga.cs.mu.OZ.AU>#1/1 X-Deja-AN: 202457647 distribution: world references: <329E0470.31E0@ix.netcom.com> <01bbdd81$7a3c1c20$3c8bccc2@adam> <32A6342E.71CF@uwindsor.ca> organization: Comp Sci, University of Melbourne newsgroups: comp.lang.functional,comp.lang.ada Date: 1996-12-05T00:00:00+00:00 List-Id: Lu Junlei writes: >Hi, I have some readly difficult question about functional language. It >might be a challenge for everybody. Anybody want to try ? Thanks ? Can I add a couple of questions ... What would happen if you had a go at doing the questions yourself rather than posting to the net? What would happen if people posted only to *relevant* newsgroups? (in this case comp.lang.functional and possibly comp.lang.ada) Michael PS. If you can convince me this is not homework I'll appologise and have a go at answering the questions, otherwise do your own work! >(a) What would happen if a pure functional language were extended with >global (program-wide) variables ? >(b) What if the program could update these variables but not read them, >nor base any decisions on them ? >(c) A higher-order function can take other functions as arguments. In >Ada, it is possible to write a generic functions that takes another >function as generic argument. >(d) What is the main difference between such generic functions and true >higher-order functions ? -- Michael Winikoff winikoff@acm.org http://www.cs.mu.oz.au/~winikoff Computer science postgrad. University of Melbourne, Australia. "Computer Science is no more about computers than astronomy is about telescopes." -- E. W. Dijkstra