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: 103376,33509c6a5c54c4cb,start X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Interpreter Pattern Posted Date: 1998/10/12 Message-ID: #1/1 X-Deja-AN: 400110653 Sender: matt@mheaney.ni.net NNTP-Posting-Date: Sun, 11 Oct 1998 20:30:42 PDT Newsgroups: comp.lang.ada Date: 1998-10-12T00:00:00+00:00 List-Id: I have written an Ada95 version of the Interpreter pattern (the boolean expression interpreter example) that appears in the Design Patterns book (by Gamma et al), along with a little essay explicating the memory management technique I used. There was a thread on this newsgroup recently about how to free the memory designating a class-wide type. The example uses the technique I suggested in my response. The essay and code were posted to the patterns list at ACM. You can read it by navigating to the hypermail archives from the Patterns working group link. If you have any trouble, write me and I'll email it to you directly. Matt