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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,571930b4ff0bc1ee X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-27 11:00:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: <3AC03CCE.70E3C2D5@mida.se> <87ae67qdrv.fsf@deneb.enyo.de> Subject: Re: Compile time executed functions Message-ID: Date: Tue, 27 Mar 2001 18:57:18 GMT NNTP-Posting-Host: 127.0.0.1 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 985719438 127.0.0.1 (Tue, 27 Mar 2001 13:57:18 EST) NNTP-Posting-Date: Tue, 27 Mar 2001 13:57:18 EST Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:6131 Date: 2001-03-27T18:57:18+00:00 List-Id: In article <87ae67qdrv.fsf@deneb.enyo.de>, Florian Weimer says... > >Ted Dennison writes: > >> If you are talking about being able to run pretty much *any* code at >> compile time, no that can't be done with just a "trick". I don't >> know of any language in existance (but I suppose there probably is >> one somewhere) that will let you do that. > >FORTH, Common Lisp (if there's any compilation at all) and Java (in >some sense) can do this. FORTH I don't know. However, I have used Common Lisp, and I never came across that capability before. How do you do it? What mechanisim tells the Lisp compiler to run the code in a complicated function at compile time rather than run time? --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com