comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Ada and Hardware
Date: Thu, 10 May 2001 14:52:48 GMT
Date: 2001-05-10T14:52:48+00:00	[thread overview]
Message-ID: <4XxK6.1081$bi2.83068@www.newsranger.com> (raw)
In-Reply-To: G9xK6.4318$577.867642@news2-win.server.ntlworld.com

In article <G9xK6.4318$577.867642@news2-win.server.ntlworld.com>, chris.danx
says...
>
>I know how to do it in C.  Use the biosdisk function!  Which is incredibly

Well, then the way to do it in Ada is *also* to use the biosdisk function, or to
write something that does what it does. Ada isn't *that* different from C.

>unsafe but is the only way i know of doing this.  I don't know how to do it in
>Ada without binding to C, but i want to avoid this if i can.

There's nothing particularly wrong with binding to an OS utility just because it
uses the C parameter passing interface. Now *writing* something new in C then
linking to it from Ada might be a bit silly, but that's not what you are talking
about, is it?

>I don't see how it isn't an Ada question. Ada supports systems programming, 
True, but so do lots of other languages. If you wanted to find out how to write
your own PC boot manager, that's a system programming question too. But there's
nothing particularly *Ada* about what you have to do to accomplish this, and
this is not the newsgroup that is full of people who are experts in writing PC
boot managers.

This is akin to calling Honda and asking "How do I do a bootlegger turn with my
Honda Accord?", when in fact you don't know how to perform a bootlegger turn
with *any* car. You may luck out and get someone who knows and can tell you, but
its not the best place to ask, and doesn't really change too much just because
you bought a Honda. 

Now if you called Honda and asked, "I'd like to perform bootlegger turns, but
I'm not sure the best way to it in my Accord becuse it uses a pedal for a foot
brake and the catch is on the shifter, which makes it tough because...", that'd
be a different matter.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



  reply	other threads:[~2001-05-10 14:52 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-10 13:02 Ada and Hardware chris.danx
2001-05-10 13:36 ` Ted Dennison
2001-05-10 14:00   ` chris.danx
2001-05-10 14:52     ` Ted Dennison [this message]
2001-05-10 18:20       ` chris.danx
2001-05-10 20:01         ` Jerry van Dijk
2001-05-10 20:54           ` chris.danx
2001-05-10 13:54 ` Tarjei T. Jensen
2001-05-10 14:10   ` chris.danx
2001-05-10 14:34     ` Tarjei T. Jensen
2001-05-10 18:28       ` chris.danx
2001-05-14  7:40         ` Kretschmer, Matthias
2001-05-10 17:24 ` Alfred Hilscher
2001-05-10 20:22   ` Ted Dennison
2001-05-10 23:35     ` Jeff Creem
2001-05-10 23:58       ` Fraser Wilson
2001-05-11  1:54         ` Jeff Creem
2001-05-11 19:13       ` Randy Brukardt
2001-05-14 10:27         ` Alfred Hilscher
2001-05-10 20:53   ` chris.danx
2001-05-11 21:45 ` GNAT for DOS chris.danx
2001-05-13 19:52 ` Ada and Hardware chris.danx
2001-05-14  0:18   ` Jeff Creem
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox