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-Thread: 103376,50e705cdf2767cc6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Parser interface design References: <4d9c59da$0$7664$9b4e6d93@newsspool1.arcor-online.net> Date: Fri, 08 Apr 2011 07:49:27 -0400 Message-ID: <8239ltynco.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) Cancel-Lock: sha1:iWt0+qEJEFTB5uDQz5xbtjkbQKI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 1ad034d9ef638e029e66132270 Xref: g2news2.google.com comp.lang.ada:19690 Date: 2011-04-08T07:49:27-04:00 List-Id: Natasha Kerensikova writes: > Hello, > > On 2011-04-06, Georg Bauhaus wrote: >> * use a task that serves as an event queue. The task will collect >> parsing events and forward them as necessary. The parser is then >> completely ignorant of any rendering. > > I have absolutely no idea of what it might even remotely look like. I > guess my C past, where task means thread, which means complex and > unreadable and extremely difficult to debug, doesn't help conceiving > what this possibility. That is one of the best features of Ada; tasking is built into the language, in a way that eliminates many of the problems that you describe. Still, it's wise to avoid tasking when you are just starting to learn Ada. -- -- Stephe