[M3devel] external in module?

Jay jayk123 at hotmail.com
Mon Feb 11 22:42:30 CET 2008


Lack of hierarchical namespaces in Modula-3 has long bugged me, but I actually pretty much got over it.
So agreed. :)
 
Yes it sounds like the builder, not the language, has a bug.
 
 - Jay



> Date: Mon, 11 Feb 2008 18:19:59 +0100> From: wagner at elegosoft.com> To: hosking at cs.purdue.edu> CC: m3devel at elegosoft.com> Subject: Re: [M3devel] external in module?> > Quoting Tony Hosking <hosking at cs.purdue.edu>:> > > Please -- no hierarchical namespaces. Ultimately, they need a> > definitive hierarchy anyway.> > I wasn't going to write the code, so no need to worry.> However, if this is not the solution we aim at, then we need to> do something else about the increasing probability of the builder> failing because some module in a completely different package> which I don't even use directly happens to have the same name> as my internal module and thus cannot be compiled. Or even worse:> if I use two packages that happen to contain one module of the> same name and have never been used together before.> > Olaf> > PS: This reminds me of Leslie Lamports definition of distributed> computing: when a computer you didn't even know existed> can render your own computer unusable :)> > > On Feb 11, 2008, at 10:02 AM, Olaf Wagner wrote:> >> >> Quoting Jay <jayk123 at hotmail.com>:> >>> >>> It'd be nice if I could declare externals in modules.> >>> In this example, setitimer_ only exists for the wrapper implementation.> >>> I don't need it to be visible outside the one module that uses it.> >>> I guess I could push it into an unexposed interface, even dedicate > >>> "internal.i3" to it?Is that an ok idiom?> >>> >> Yes, use an internal interface of the package. But you should use> >> another name (something longer and more unique), since the CM3> >> builder still has problems with multiple defined units AFAIK.> >>> >> This is something that should really be fixed, but that's another> >> topic. (We'd need hierarchical name spaces, but introduce them in> >> a compatible way.)> >>> >> Olaf> >>> >>> It's another problem that I don't know what to call these things..> >>> >> This usually is _my_ problem :-)> >> -- > >> Olaf Wagner -- elego Software Solutions GmbH> >> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany> >> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95> >> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin> >> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194> >>> > > > -- > Olaf Wagner -- elego Software Solutions GmbH> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194> 
_________________________________________________________________
Helping your favorite cause is as easy as instant messaging. You IM, we give.
http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080211/ac9b737c/attachment-0002.html>


More information about the M3devel mailing list