220 14689 <d3eca47b-5d2e-4ecc-94d1-e2f90810f4b5@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Will Cassella <wcassella@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Modules with lazy symbol resolution
Date: Fri, 21 Nov 2014 20:15:57 -0800 (PST)
Lines: 134
Approved: news@gmane.org
Message-ID: <d3eca47b-5d2e-4ecc-94d1-e2f90810f4b5@isocpp.org>
References: <a0293b4f-51bf-47cf-981b-67b299e8ab4e@isocpp.org>
 <3384057.c619ZPUSbM@tjmaciei-mobl4>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_99_503115908.1416629757017"
X-Trace: ger.gmane.org 1416629764 29868 80.91.229.3 (22 Nov 2014 04:16:04 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 22 Nov 2014 04:16:04 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCNJLUGVSMKBB7U3YCRQKGQEPWS4K2I@isocpp.org Sat Nov 22 05:16:00 2014
Return-path: <std-proposals+bncBCNJLUGVSMKBB7U3YCRQKGQEPWS4K2I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vc0-f199.google.com ([209.85.220.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCNJLUGVSMKBB7U3YCRQKGQEPWS4K2I@isocpp.org>)
	id 1Xs275-0006bR-HN
	for gclcip-std-proposals@m.gmane.org; Sat, 22 Nov 2014 05:15:59 +0100
Original-Received: by mail-vc0-f199.google.com with SMTP id le20sf4608609vcb.10
        for <gclcip-std-proposals@m.gmane.org>; Fri, 21 Nov 2014 20:15:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :content-type:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=4Sn/VaNmV5mevu2hcoYmtG4o+aPQ/uymEWbrqDLkoJ4=;
        b=nlKmdW3EnPzmXMLCP0zLPb9lNgbJNOQMTVgbcQhBEVXOrwa40zrFAFB6b92CgobanG
         3GiJJA0iCAmETjp1FXiqj+g2wrSSGDCjWCPjMfeJqyP1s4I14uW+U9EePpbpu7rYEKSf
         TWuLkDC/EUFdxPrZvmDZXT6JFdxCtxTNuu7monRQL6kX5klXV2Kx5flMd+vfHjrDcJBf
         s08wwIQ2mc9QTZ93QHPDqppGzGtLVaAugYEP7IGbGlDvJe/BM0a8CxHeG4JN7bHMRmha
         3QAioSH1JIZO4pixqYSW1Fo4K3enKoET/TPxhIDVsVXPnX6A9ZeNr563cugUQNhpXUKX
         xZWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:content-type:x-original-sender:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=4Sn/VaNmV5mevu2hcoYmtG4o+aPQ/uymEWbrqDLkoJ4=;
        b=AVFC03OrIbYT2TljBkD6IOqavkqywo7v02AJkas/zrWQkeWcF+eISpab6llk1Ypxh5
         rD+GHI6o46YzfLUzgZDaYJcqnNBLowwLdMWkt5jOqcClOWWZXuFgLaXBBjgGdCembThf
         R9e7qH1IzMslojLMwPbXHOSjXqVYG25IrmKFu3T1KiG+lrUSkuoJB3mHoRGlzOZx8wHC
         iCkDao0oGEWj69K62mkVlA7WSv/a0eRWXTJk5sduEm90l0UEisJ9rNx+TXaq/Bu3zbbw
         Y7RM6fvNoT7l5iLj+oRZtB6W+HAJKCLSndgOWJbj4XM/Z0mzDlFaOO+d8OLHG8iSUQ3T
         oMLg==
X-Gm-Message-State: ALoCoQnTpy2He16Wsqg4/ToFB8/zsnqqySWTLUn+yxNrlQRsvbNIkBjRl8IUn0mOR7NyLRXeQ9MZ
X-Received: by 10.236.2.41 with SMTP id 29mr6771489yhe.32.1416629758708;
        Fri, 21 Nov 2014 20:15:58 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.117.106 with SMTP id kd10ls155890igb.33.gmail; Fri, 21 Nov
 2014 20:15:58 -0800 (PST)
X-Received: by 10.50.118.9 with SMTP id ki9mr22925igb.16.1416629758071;
        Fri, 21 Nov 2014 20:15:58 -0800 (PST)
In-Reply-To: <3384057.c619ZPUSbM@tjmaciei-mobl4>
X-Original-Sender: wcassella@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:14689
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/14689>

------=_Part_99_503115908.1416629757017
Content-Type: multipart/alternative; 
	boundary="----=_Part_100_1225947517.1416629757017"

------=_Part_100_1225947517.1416629757017
Content-Type: text/plain; charset=UTF-8

Why not? I can see how C++ has quite a bit of momentum going with this, but 
it seems that removing the restriction of declaration-before-use would only 
make the language easier to use. It has been implemented successfully in 
other languages, so I don't see why c++ should be any different. Is there 
anything unique to C++ that prevents doing so?

On Friday, November 21, 2014 9:05:17 PM UTC-7, Thiago Macieira wrote:
>
> On Friday 21 November 2014 18:01:38 Will Cassella wrote: 
> > I have been reading a lot about modules lately, and their potential use 
> in 
> > the future of C++. Personally I find the shift very appealing and am 
> > looking forward to seeing its implementation. My favorite approach to 
> the 
> > concept has been the one taken by the developers of Clang. However, one 
> > angle I have not seen explored is the possibility of lazy symbol 
> resolution 
> > (i.e allowing the usage of a type/function before its declaration) 
> within 
> > module compilation. 
>
> I don't think this will ever happen. 
>
> All functions need to be forward declared with their full parameter list 
> and 
> return types before they can be called or their address taken, all global 
> variables must be extern-declared before their address can be taken and 
> for 
> that all aggregates must be forward-declared. Additionally, before any 
> type 
> can be constructed, it needs to be fully declared. 
>
> That is not going to change. 
> -- 
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org 
>    Software Architect - Intel Open Source Technology Center 
>       PGP/GPG: 0x6EF45358; fingerprint: 
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358 
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_100_1225947517.1416629757017
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Why not? I can see how C++ has quite a bit of momentum goi=
ng with this, but it seems that removing the restriction of declaration-bef=
ore-use would only make the language easier to use. It has been implemented=
 successfully in other languages, so I don't see why c++ should be any diff=
erent. Is there anything unique to C++ that prevents doing so?<br><br>On Fr=
iday, November 21, 2014 9:05:17 PM UTC-7, Thiago Macieira wrote:<blockquote=
 class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1=
px #ccc solid;padding-left: 1ex;">On Friday 21 November 2014 18:01:38 Will =
Cassella wrote:
<br>&gt; I have been reading a lot about modules lately, and their potentia=
l use in=20
<br>&gt; the future of C++. Personally I find the shift very appealing and =
am=20
<br>&gt; looking forward to seeing its implementation. My favorite approach=
 to the=20
<br>&gt; concept has been the one taken by the developers of Clang. However=
, one=20
<br>&gt; angle I have not seen explored is the possibility of lazy symbol r=
esolution=20
<br>&gt; (i.e allowing the usage of a type/function before its declaration)=
 within
<br>&gt; module compilation.
<br>
<br>I don't think this will ever happen.
<br>
<br>All functions need to be forward declared with their full parameter lis=
t and=20
<br>return types before they can be called or their address taken, all glob=
al=20
<br>variables must be extern-declared before their address can be taken and=
 for=20
<br>that all aggregates must be forward-declared. Additionally, before any =
type=20
<br>can be constructed, it needs to be fully declared.
<br>
<br>That is not going to change.
<br>--=20
<br>Thiago Macieira - thiago (AT) <a href=3D"http://macieira.info" target=
=3D"_blank" onmousedown=3D"this.href=3D'http://www.google.com/url?q\75http%=
3A%2F%2Fmacieira.info\46sa\75D\46sntz\0751\46usg\75AFQjCNEswDUBNCNanbu7euhq=
Ln_62FW8ag';return true;" onclick=3D"this.href=3D'http://www.google.com/url=
?q\75http%3A%2F%2Fmacieira.info\46sa\75D\46sntz\0751\46usg\75AFQjCNEswDUBNC=
Nanbu7euhqLn_62FW8ag';return true;">macieira.info</a> - thiago (AT) <a href=
=3D"http://kde.org" target=3D"_blank" onmousedown=3D"this.href=3D'http://ww=
w.google.com/url?q\75http%3A%2F%2Fkde.org\46sa\75D\46sntz\0751\46usg\75AFQj=
CNHGRJdo5_JYG1DowztwAHAKs80XSA';return true;" onclick=3D"this.href=3D'http:=
//www.google.com/url?q\75http%3A%2F%2Fkde.org\46sa\75D\46sntz\0751\46usg\75=
AFQjCNHGRJdo5_JYG1DowztwAHAKs80XSA';return true;">kde.org</a>
<br>&nbsp; &nbsp;Software Architect - Intel Open Source Technology Center
<br>&nbsp; &nbsp; &nbsp; PGP/GPG: 0x6EF45358; fingerprint:
<br>&nbsp; &nbsp; &nbsp; E067 918B B660 DBD1 105C &nbsp;966C 33F5 F005 6EF4=
 5358
<br>
<br></blockquote></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_100_1225947517.1416629757017--
------=_Part_99_503115908.1416629757017--

.
