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.8 required=5.0 tests=BAYES_00,PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b6d862eabdeb1fc4 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: Ada noob here! Is Ada widely used? Date: Sat, 05 Jun 2010 21:14:53 +0100 Message-ID: References: <0e88de66-128c-48fd-9b9f-fdb4357f318a@z17g2000vbd.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net rYKgkZj+pUldZ8S42Z+P7Alc3BXCm5LyfNcOPoV+2/xNIzrgW8 Cancel-Lock: sha1:az/pL1MdtxcYk68TO4xxB+s07FA= User-Agent: Microsoft-Entourage/12.23.0.091001 Thread-Topic: Ada noob here! Is Ada widely used? Thread-Index: AcsE68ISso2bTMlwQEOg46Aim4tiCA== Xref: g2news1.google.com comp.lang.ada:11322 Date: 2010-06-05T21:14:53+01:00 List-Id: On 05/06/2010 19:50, in article wcchblh9uw6.fsf@shell01.TheWorld.com, "Robert A Duff" wrote: > "Nasser M. Abbasi" writes: > >> I meant complex type in ada is not an elementary type. > > Complex cannot be an elementary type, because it has components > (real and imaginary parts). That's what "elementary" means > in Ada -- no components. > >> I just meant it seems "easier" to use complex numbers in FORTRAN than >> Ada, just because one does not to do all this instantiating every >> where. > > You don't have to instantiate everywhere. If you're willing to stick > to the predefined floating point types (Float, Long_Float, etc), > then you can use Ada.Numerics.Elementary_Functions, > Ada.Numerics.Long_Elementary_Functions, etc. I've never understood the objection to "all this instantiating every where". How much effort is a line or three of boilerplate code? -- Bill Findlay chez blueyonder.co.uk