Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48775 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30132 invoked from network); 14 Jun 2010 14:01:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2010 14:01:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-ww0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:64158] helo=mail-ww0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/2B-07295-746361C4 for ; Mon, 14 Jun 2010 10:01:43 -0400 Received: by wwe15 with SMTP id 15so894787wwe.29 for ; Mon, 14 Jun 2010 07:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Ymz64erk3HJS/pNjYOgYIkhLvql1C9n2RBKQOMdTRgU=; b=JquTsczg4WeOPn+b9phu9DvkBY2ukbjsxx7BYm+YUkxtUnpjKazchzGZwH0+Cp+mm/ VLWLI/ez+TQq4A0nVvle3CfhAmzh+bsQZK1LkSGE8IH9uquawkinQ2O1LXl8+BsWKaK8 0Elrak0JoJ6CiAw8I81rWn8jFc9MnctGpfHW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=gMLsBQSRPuNmdeyTI2EDZrXycpr7xRTrxK3sh2ejHLqbLmc/TpN4zxLoTg2UYwL7Zm N4Qggpq76Rb3S1K41GHzR2h+7kNQUqg3LY09MqkfAQhHYMRwghutNh1dX/faGtHriXKW fe/bCvZ1BPQwdLlqAiyWUx8V4rzes2oZX5LSk= MIME-Version: 1.0 Received: by 10.227.155.75 with SMTP id r11mr5749092wbw.62.1276524099860; Mon, 14 Jun 2010 07:01:39 -0700 (PDT) Received: by 10.216.176.9 with HTTP; Mon, 14 Jun 2010 07:01:38 -0700 (PDT) In-Reply-To: <514DC7EC-9D36-4FE9-BDF4-B6CA13DA274B@php.net> References: <6296D1E6-24DC-4A8E-892A-9EA6D08B0DC8@php.net> <514DC7EC-9D36-4FE9-BDF4-B6CA13DA274B@php.net> Date: Mon, 14 Jun 2010 16:01:38 +0200 Message-ID: To: Melanie Rhianna Lewis Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Different ways to collect an extension's functions. From: patrick.allaert@gmail.com (Patrick ALLAERT) 2010/6/14 Melanie Rhianna Lewis : > I know the ANSI C standard pretty well but I don't remember that at all s= o rather than just accepting it I checked it on my Mac using a small exampl= e. =C2=A0Compiler details are below: > > kring:Development melanie$ gcc --version > i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5657) > > In my example static const did have internal linkage, const on its own in= the global scope did not. =C2=A0You still need static. Right, "const" is not similar to "static const"! +1 for static consts for all of them Patrick > Melanie > > > On 14 Jun 2010, at 12:28, Gustavo Lopes wrote: > >> On Mon, 14 Jun 2010 11:56:57 +0100, Melanie Rhianna Lewis >> wrote: >> >>> My feeling is that they should all be static consts unless explicitly a= ccessed outside of the object module or changed. =C2=A0 =C2=A0Since typical= ly they're a list of function/method entries only accessed by a class or ze= nd_module_entry that is really the case. =C2=A0Without the static we're pol= luting the name space. >>> >> >> The static keyword is unnecessary, const already makes the variable have= internal linkage by default. >> >> -- >> Gustavo Lopes >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php