|
if Restrict_Func /= null confusion Well folks its been at least 4 years since I've perused and/or written Ada source. That aside I'm perusing source code written in Ada. So consider: -- used to restrict a variable within a range -- for example: -PI to +PI type Restrict_Function is access function (X: Real4) return Real4; type Filt_Data is ... 31 Mar 2008 20:00
Converting Type Characters to type string Hi, I am looking for a way to convert a group of characters to a string. For the program I am writing I am having the user input a group of characters and comparing them. But I also need the characters in the form of a string later on so I can use int := Integer'Value(str); How would I go about doing this? F... 3 Apr 2008 10:37
ANN: Some updates Tables 1.8 http://www.dmitry-kazakov.de/ada/tables.htm Strings Edit 2.1 http://www.dmitry-kazakov.de/ada/strings_edit.htm Simple components 2.8 http://www.dmitry-kazakov.de/ada/components.htm Fuzzy sets for Ada 5.2 http://www.dmitry-kazakov.de/ada/fuzzy.htm The focus of these releases is UTF-8 support. ... 31 Mar 2008 19:20
Semantics of statement reordering relevant to Ada.Real_Time On Mar 29, 7:51 am, kongra <kon...(a)gmail.com> wrote: Start_T := Ada.Real_Time.Clock; for K in 1 .. 10 loop for I in 1 .. 10_000_000 loop Val := Val + I; end loop; end loop; End_T := Ada.Real_Time.Clock; I have a question about this piece of the program. Becaus... 31 Mar 2008 20:00
Text_IO from a stream ....is it possible ? The RM tells about the reverse, getting a stream access from a text file (Text_IO.Text_Streams). TIA ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm ... 2 Apr 2008 03:48
GnatBench (from GPL edition) On Sun, 30 Mar 2008 10:24:47 +0200, "Dmitry A. Kazakov" <mailbox(a)dmitry-kazakov.de> wrote: On Sat, 29 Mar 2008 23:32:50 +0000, John McCabe wrote: GPS may be a showcase for GTKAda but, on Windows, I don't think it does GTK+ any favours. Look at the screenshot at https://libre.adacore.com/gps/img... 4 Apr 2008 19:07
Untyped Ada? It's a slow Monday, so it's time to ask non-pertinent, and possibly impertinent, question: If a non-typed or weakly typed version of Ada were available, would you use it? A) Never! My code is perfect, and I never, ever have to convert types! B) Maybe for prototypes. C) Late at night when I thought nobody c... 12 Apr 2008 12:42
Ada.Real_Time behavior with GNAT Hi everybody. I have a question related to the Ada.Real_Time package. When I compile the following code using GNAT GPL 2007 on Windows XP SP2 I observe some strange looking behavior. with Ada.Real_Time; with Ada.Text_IO; procedure Timing is Start_T : Ada.Real_Time.Time; End_T : Ada.Real_Time.Time;... 31 Mar 2008 18:39
Converting Type Characters to type string On 31 Mar, 17:41, Adam Beneschan <a...(a)irvine.com> wrote: I almost never use single-character input. The only time I would want to is if, for some reason, you need the program to react immediately to some key that's typed in (other than Return or Enter). E.g. I've written programs that will do something... 31 Mar 2008 18:39
Generics with concrete and class-wide types Consider a generic subprogram that makes sense for arguments of both class-wide type and a concrete type. As a motivating example, there might be a hierarchy of iterator types rooted in some imaginary Iterator type that is itself defined in the generic package with the element type as its own formal parameter. T... 1 Apr 2008 17:21 |