Board index » delphi » functions as function

functions as function

-=[ In:christophe.avonture@is was heard to say... ]=-

 In> Marius de Vink <M.de.V...@RCOndw.RuG.NL> wrote:
 >I posed this question once before but I didn't formulate the question
 >correctly so I'll try it again.
 >
 >Question: Is there a pascal compiler for DOS which allows the following:
 >
 >function whatever(function what(x : integer) : integer) : integer;
 >
 >or instead of functions procedures. I know Turbo Pascal does not allow
 >this, while Standard Pascal does.

 In> --

 In> ___                                              ___
 In> L_|_                                            _|_J
 In> ( -O>                                            <O- )
 In> ___//\J  __________________________________________  L/\\___
 In> //-,\    |                                          |    /,-\\
 In> || / \\___L   AVONTURE Christophe (c) AVC Software   J___// \ ||
 In> _ ''/\/ '---J    Christophe.Avont...@is.belgacom.be    L---' \/\'' _
 In> / \ //\\.    |__________________________________________|    .//\\ /
 In> \ |_/\'/  ||                                                    ||
 In> \'/\_| '   ||_         "Make sure that, always!, you          
 In> _||   ' |__)       reply to my private mail adress"        
 In> (__|

 In> Delphi Super Page:
 In> http://sunsite.icm.edu.pl/archive/delphi/_index.html
 In> "Postings are personnal, and don't reflect Belgacom's opinion"

You never said anything, so why did you post?

And please, please, PLEASE reduce your sig to at least a third the size
it is now!!! Especially if you're in the habit of posting one-liners (or
no-liners in this case!). ASCII art belongs in rec.art.ascii, not here!

        -- Kim Forwood --

  /-=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=-\
  $           Kim Forwood  <kim.forw...@access.cn.camriv.bc.ca>          %
  %              http://goodship.cn.camriv.bc.ca/~kforwood/              $
  $         For what purpose is life, if one cannot live freely?         %
  \-=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=-/

___ Blue Wave/QWK v2.20

 

Re:functions as function


Quote
>Question: Is there a pascal compiler for DOS which allows the following:

>function whatever(function what(x : integer) : integer) : integer;

>or instead of functions procedures. I know Turbo Pascal does not allow
>this, while Standard Pascal does.

     Yes.  The Oregon Software Pascal compiler will allow this.
Unfortunately, the company went out of business quite a while ago (8
years?).  There are other "non-Borland" companies, however, who may
make a Standard Pascal product.  How about Prospero?

Bob Schor
Pascal Enthusiast

Other Threads