From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Wed, 6 Aug 2008 16:29:08 +0000 From: comeau@panix.com (Greg Comeau) Message-ID: References: <13426df10808052014q1f6931epdddd339fb86f860f@mail.gmail.com>, Subject: Re: [9fans] float.h Topicbox-Message-UUID: fc24e3e2-ead3-11e9-9d60-3106f5b1d025 In article , Pietro Gagliardi wrote: >On Aug 5, 2008, at 11:14 PM, ron minnich wrote: > >> I'm so confused. Why don't you just show the code. >> >> ron >> > >#include >... >#include >... > >static struct{ > char *name; > double value; >}constants[] = { > ... > "MIN", DBL_MIN, > "MAX", DBL_MAX, > "EPSILON", DBL_EPSILON, > ... >}; > >I'm actually writing a calculator that will take advantage of several >features of Plan 9 (Runes, libgeometry, etc.) and I'd like to make >these available. Does it help any to initialize constants[] in a source file by itself? -- Greg Comeau / 4.3.10.1 with C++0xisms now in beta! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?