🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1064

Re: "module" facility for top-level namespace control

#1064
From: Scott Layson Burson
Date: Wed, 01 May 1991 19:26
24 lines
1560 bytes
In article <1991Apr30.202357.13791@kestrel.edu> I wrote:
>In article <1991Apr29.174033.29627@alias.com> rae@alias.com (Reid Ellis) writes:
>>Why don't we simply use a syntax which already evokes this concept --
>>using "extern"?
>>
>>I don't know if another keyword after the extern is necessary, or
>>simply the name of the enclosing scope.  Something like the following?
>>
>>extern NIH {
>>#include <NIHCL.h>
>>};
>
>My first reaction was Hey, this is pretty good, but look what it would
>mean: the rule would have to be that *if* the name following `extern'
>were not defined as a type, which is what would normally appear in
>that position, *then* treat it as a namespace.  Then someone who
>misspelled a type name following `extern' wouldn't find out about it
>until link time, and rather indirectly at that.

Oops -- Jerry Schwarz (jss@kpc.com) has corrected me -- the construct
is rendered unambiguous by the `{'.  So this objection is invalid.

-- Scott
Gyro@Reasoning.COM
Technical Details
Message-ID: <1991May1.192611.20568@kestrel.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!bionet!ucselx!petunia!kestrel.edu!gyro
References: <RAEBURN.91Apr26165646@watch.mit.edu> <1991Apr29.174033.29627@alias.com> <1991Apr30.202357.13791@kestrel.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!bionet!ucselx!petunia!kestrel.edu!gyro
From: gyro@kestrel.edu (Scott Layson Burson)
Newsgroups: comp.std.c++
Subject: Re: "module" facility for top-level namespace control
Message-ID: <1991May1.192611.20568@kestrel.edu>
Date: 1 May 91 19:26:11 GMT
References: <RAEBURN.91Apr26165646@watch.mit.edu> <1991Apr29.174033.29627@alias.com> <1991Apr30.202357.13791@kestrel.edu>
Distribution: comp.std.c++
Organization: Kestrel Institute, Palo Alto, CA
Lines: 24