comp.lang.ada
 help / color / mirror / Atom feed
From: Peter Chapin <PChapin@vtc.vsc.edu>
Subject: Re: Ada 2005 Language Designer
Date: Thu, 9 Oct 2014 19:33:06 -0400
Date: 2014-10-09T19:33:06-04:00	[thread overview]
Message-ID: <MPG.2ea0e505fa80e08f989680@text.giganews.com> (raw)
In-Reply-To: 5436ED7B.9080109@gmail.com

In article <5436ED7B.9080109@gmail.com>, OneWingedShark@gmail.com 
says...

> > And you couldn't pass it as a parameter to any other subprogram,
> > nor return one from a function.
> 
> That would be an interesting feature.
> Sounds about on-par with LISP's macro functionality; and possibly like 
> the multi-staged compiler option one of the people on this forum was 
> advocating for Ada 202X.

Passing modules around as if they were ordinary objects is supported by 
some languages such as Scala. In fact Scala allows you to have multiple 
implementations of a module in the same program... similar to having two 
different package bodies for the same specification in a single Ada 
program. You can even store module objects in other data structures, 
e.g., put them in an array. It's actually quite elegant. However, those 
features are distinct from macros or multi-staged programming, at least 
in Scala's case.

Peter


  reply	other threads:[~2014-10-09 23:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-08 13:44 Ada 2005 Language Designer G.B.
2014-10-08 14:16 ` David Botton
2014-10-08 15:15   ` J-P. Rosen
2014-10-08 18:22     ` Adam Beneschan
2014-10-08 19:07       ` Dmitry A. Kazakov
2014-10-08 19:12       ` David Botton
2014-10-08 17:13   ` Jeffrey Carter
2014-10-08 17:17     ` David Botton
2014-10-08 18:30     ` Adam Beneschan
2014-10-08 20:35       ` Jeffrey Carter
2014-10-08 21:26         ` Adam Beneschan
2014-10-09 20:18           ` Shark8
2014-10-09 23:33             ` Peter Chapin [this message]
2014-10-09 20:14       ` Shark8
2014-10-09  1:07 ` brbarkstrom
replies disabled

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