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=0.2 required=5.0 tests=BAYES_00,PDS_OTHER_BAD_TLD, URI_HEX autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c938855fbb4e2028 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-04 07:06:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!69116-cm.able.ES!not-for-mail From: Jano Newsgroups: comp.lang.ada Subject: Re: Gnat.Sockets.Stream memory "leak" Date: Fri, 4 Jul 2003 16:04:40 +0200 Message-ID: References: <3f02ab2c$1@epflnews.epfl.ch> <3f0555e1$1@epflnews.epfl.ch> NNTP-Posting-Host: 69116-cm.able.es (212.97.169.116) X-Trace: fu-berlin.de 1057327600 1066104 212.97.169.116 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:40061 Date: 2003-07-04T16:04:40+02:00 List-Id: =?UTF-8?B?Um9kcmlnbyBHYXJjw61h?= dice... > I do not understand you here... Why do you want to store an access to a > stream? And where (in memory or in disk)? To store it in memory you only > have to create a variable of the Stream_Access type... In memory, of course. I have some objects that operate over streams. I pass the stream in an access parameter, but to store it I don't care (nor know) if they are Stream_io.Stream_access or Sockets.Stream_access, etc so I can't use any of the preexistent Stream_access types. I need to define my own access to Root_stream_type'Class. I simply would find convenient that these root'Class access where defined where it all starts: in Ada.Streams. Since I must "with" that package to have access parameters to streams, it would spare me the definition. I hope it's clearer now. -- ------------------------- Jano 402450.at.cepsz.unizar.es -------------------------