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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!out03a.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny02.POSTED!0e8a908a!not-for-mail From: Hyman Rosen User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: why learn C? References: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <1175215906.645110.217810@e65g2000hsc.googlegroups.com> <1175230352.808212.15550@e65g2000hsc.googlegroups.com> <1175236212.771445.135460@y66g2000hsf.googlegroups.com> <1175308871.266257.77460@e65g2000hsc.googlegroups.com> <1175501602.127760.186120@q75g2000hsh.googlegroups.com> <1yveg1eads.fsf@hod.lan.m-e-leypold.de> In-Reply-To: <1yveg1eads.fsf@hod.lan.m-e-leypold.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 15 Apr 2007 00:55:19 GMT NNTP-Posting-Host: 70.23.112.59 X-Complaints-To: abuse@verizon.net X-Trace: trndny02 1176598519 70.23.112.59 (Sat, 14 Apr 2007 20:55:19 EDT) NNTP-Posting-Date: Sat, 14 Apr 2007 20:55:19 EDT Xref: g2news1.google.com comp.lang.ada:15029 Date: 2007-04-15T00:55:19+00:00 List-Id: Markus E Leypold wrote: > This is only necessary because C/C++ has no way to specify a > constant array (i.e. a "array literal"). Not really. The preprocessor stuff is generating program code as well as data. Think about "properties" - you need to code a getter, a setter, a place to hold the value, a type, a descriptive string, and so forth. The language syntax may not allow all of this to be in one place, and that's where macros can come in handy.