comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <wesgroleau@despammed.com>
Subject: Re: Would an *AdaScript* language be a good / bad idea?
Date: Fri, 17 May 2002 18:12:33 -0500
Date: 2002-05-17T18:12:33-05:00	[thread overview]
Message-ID: <3CE58E61.F824208D@despammed.com> (raw)
In-Reply-To: 3CE52E77.FC3FC588@san.rr.com



> > And I don't see either example as being more difficult than
> >   Invoke (Name_Of_File);
> 
> Um.... But that doesn't do the same thing. What do you think the semantics

If Name_Of_File identifies the linked program, it does the same thing.

> of "Invoke" are? Compiling a program and executing it?

No, just what I said they are:

> >   procedure Invoke (Command : String);
> >   pragma Import (C, Invoke, "exec");
> >   -- this won't work, it's merely illustrative


> Well, my point is all these things modify the currently-running program, so
> yeah, it is a lot harder. If you haven't done a lot of work with this type
> of scripting language, then I suspect you aren't really following what I'm
> saying here.

After 10-15 years of Ada and other languages, including the usual
incidental scripting, and having (unfortunately) for the last
three having ksh, perl, and TCL be 75% of my job, I suspect I'm not
is ignorant as you think.

> The rest snipped, because I'm not sure you're making any sense.

Maybe you need to read a little more carefully.

> There's a tremendous difference between linking to DLLs, generating code on
> the fly, and the "exec" system call.

It's certainly true that the extreme case I snipped
is not appropriate for Ada.  That doesn't make the
lesser cases in the previous posts difficult.

Arguing with you is aiming at a rapidly moving target.

"There's a tremendous difference between" the

  source $Filename

that I challenged two posts back and the

> ... declares a new type at run-time
> based on a user's input, perhaps a derived type of a tagged type, and loads
> it into the currently running program, instantiates it, and sticks it into
> an array of heterogenous objects all derived from that type, dynamically
> dispatching to them. ...

of the last post.  Although I could do that in Ada,
too--but again, I would not recommend it.  Because
when you go that far, you ARE getting quite difficult.
And quite inefficient.

-- 
Wes Groleau
http://freepages.rootsweb.com/~wgroleau



  parent reply	other threads:[~2002-05-17 23:12 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-14  4:51 Would an *AdaScript* language be a good / bad idea? James Ross
2002-05-14  5:15 ` James Ross
2002-05-14  8:47 ` Ingo Marks
2002-05-14 14:21   ` Robert Dewar
2002-05-14 19:24     ` Ingo Marks
2002-05-15  5:32       ` Robert Dewar
2002-05-14  9:03 ` Preben Randhol
2002-05-14 14:18 ` Robert Dewar
2002-05-14 15:25   ` Larry Kilgallen
2002-05-14 16:45   ` Preben Randhol
2002-05-15  6:33     ` Per Sandbergs
2002-05-15  8:52       ` Preben Randhol
2002-05-15 11:35       ` Marc A. Criley
2002-05-15 12:56   ` Steve Doiel
2002-05-15 14:28     ` Preben Randhol
2002-05-16  2:46     ` Robert Dewar
2002-05-16 16:04       ` Darren New
2002-05-16 17:18         ` Wes Groleau
2002-05-16 18:52           ` Darren New
2002-05-17 14:33             ` Wes Groleau
2002-05-17 16:22               ` Darren New
2002-05-17 16:56                 ` Darren New
2002-05-17 23:13                   ` Wes Groleau
2002-05-17 23:20                     ` Darren New
2002-05-17 16:58                 ` Stephen Leake
2002-05-17 17:23                   ` Darren New
2002-05-17 17:35                   ` Pascal Obry
2002-05-17 17:44                     ` Darren New
2002-05-17 18:02                       ` Pascal Obry
2002-05-17 23:12                 ` Wes Groleau [this message]
2002-05-17 23:27                   ` Darren New
2002-05-18  2:54         ` Robert Dewar
2002-05-18  2:59         ` Robert Dewar
2002-05-28  0:31           ` David Thompson
2002-05-29  1:11             ` Robert Dewar
2002-05-21 20:48       ` Florian Weimer
2002-05-21 21:05         ` Preben Randhol
2002-05-22  7:17           ` Pascal Obry
2002-05-22 11:29             ` Preben Randhol
2002-05-21 20:35   ` Florian Weimer
2002-05-15 11:39 ` Bill Tate
2002-05-17 19:24   ` Gerhard Häring
replies disabled

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