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,71aa8acfc8368f1c,start X-Google-Attributes: gid103376,public From: Duncan Sands Subject: BLAS Date: 2000/05/12 Message-ID: #1/1 X-Deja-AN: 622456508 Content-Transfer-Encoding: 7bit To: Gautier De Montmollin Content-Type: text/plain; charset=US-ASCII X-Complaints-To: usenet@enst.fr X-Trace: menuisier.enst.fr 958116905 23893 137.194.161.2 (12 May 2000 07:35:05 GMT) Organization: ENST, France X-BeenThere: comp.lang.ada@ada.eu.org Mime-Version: 1.0 Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Date: 12 May 2000 07:35:05 GMT Newsgroups: comp.lang.ada Date: 2000-05-12T07:35:05+00:00 List-Id: >Marvelous! When I find some time I'll use your binding. >For now I'm using an excerpt, of course also with "digits <>" >genericity for float type and with hastly conception - see below. >Maybe the "BLAS_Precision" could be added as generic parametre >for equilibirum with the generic "digits <>" ? Another solution >would be to pass as generic: > > 1) the type you want to use, type Float_Type is digits <>; > 2) the type which you know is single, type Single is digits <>; > 3) the type which you know is double type Double is digits <>; > >and automatically identify the type with the 'digits or another more >subtle criterion. Surely for Ada 95, the Interface.Fortran package >contains 2) and 3) so you can determine the "BLAS_Precision" only >with 1) as generic, but then you'd lose the Ada 83 compatibility. Dear Gautier, keeping Ada 83 compatibility seems problematic. After all, the problem is not just with whether Float_Type is single or double precision, but you also need to know the size of Fortran_Integer, Character_Set and perhaps some other stuff as well. I notice that in your binding you suppose that Fortran_Integer and Integer are the same... There is also the problem of link names. For example, if I compile the BLAS with g77, then the link names have an underscore appended, and I need to tell Ada about this. Pragma Import can handle this, but can pragma Interface? How important do you think it is to keep Ada 83 compatibility? Best wishes, Duncan.