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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38c827f7e800d317 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-28 01:25:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!freenix!enst.fr!not-for-mail From: "Andrew" Newsgroups: comp.lang.ada Subject: conversion Date: Sat, 28 Jun 2003 02:46:46 -0600 Organization: ENST, France Message-ID: NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1056788759 27782 137.194.161.2 (28 Jun 2003 08:25:58 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sat, 28 Jun 2003 08:25:58 +0000 (UTC) To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3718.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3718.0 X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:39866 Date: 2003-06-28T02:46:46-06:00 The more I think about the string/unbounded_string inconvenience the more I think about polymorphism. Polymorphism helps readability in some situations. In the case of the 'utilities' functions I think polymorphism would provide a great service. The "flavor" that char* and char[] as parameters in functions is that they seem interchangeable. I can pass a char* into a function declared to use char[], and vice-versa. It's not that way in Ada, most likely for a real good reason, but it would sure be nice if there were a way to make it seem that easy in Ada. Enter polymorphism. If overloaded slice inside Unbounded package to return an unbounded_string an unbounded_string would still need to be created. I don't think there is any way around that part but having the overloaded slice function would bring a type transparent feeling to using the slice function and many others as well. Polymorphism in this case would help. One way to achieve polymorphism is to overload the 'utility' functions. That explains why I had the feeling of extending the functionality of the Unbounded package. It doesn't seem complete. -- In regard to separate compilation >Better to use child packages. "is separate" is really an Ada 83 >feature; child packages in Ada 95 is a better way to structure things. >Sometimes "is separate" is a good way to go, but rarely. Is the "is separate" feature going away? -- In regard to gnatmem gnatmem says it will start a program and you can provide the command line arguments to it. "gnatmem ..." So, I have a program fashionably called testprog that takes two command line arguments; a path and a filename. So I try to run gnatmem (after compiling with debug flag) like: "gnatmem testprog . testdata.txt" Gnatmem then says that the program ended unexpectedly. I can run "testprog . testdata.txt" from the command line and it works fine. -- In regard to GNAT >Hmm, this is confused. GNAT _is_ the Ada Core Technologies (ACT) >compiler. Ok, how about the IDE portion? Thanks for the help all! Andrew