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,6f1bfffc435f7360 X-Google-Attributes: gid103376,public From: sal714@rs710.gsfc.nasa.gov (Stephen A. Leake) Subject: Re: Generic Put Statement Date: 1996/04/19 Message-ID: #1/1 X-Deja-AN: 150481644 references: <317742B9.34FC@pitt.edu> organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA newsgroups: comp.lang.ada Date: 1996-04-19T00:00:00+00:00 List-Id: In article <317742B9.34FC@pitt.edu> Daniel Tomalesky writes: I have to write a program where I have to use put statements in a generic package. Now how do I tell the generic package to use a put statement for integer or float or character. I tried to add a with procedure put statement in the generic spec but when I wrote the driver I couldn't instantiate the package put for integer. The problem seems to be that put have multiple parameters depending on which one you are using...is there a way around that for generics? Please mail me an answer if anyone has one. Thanks I've had this problem too; I wrote a generic array IO package. The general solution is to write wrappers for the Text_IO functions, that take the File and Item args, and use defaults for the rest. The Ada code I wrote is available via my web page: http://www710.gsfc.nasa.gov/~sal714/homepage.html Look there for examples. Happy instantiating :-) -- Stephen Leake, NASA Goddard Space Flight Center email: Stephen.Leake@gsfc.nasa.gov