Static function at module level

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 18 10:42:25 PDT 2014


On Mon, 18 Aug 2014 06:46:02 +0000
bearophile via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> accepting useless code confuses newbies
i think that i'm not really a newbie now ;-), but i'm still used to
declare various private module functions and variables as 'static'.
yes, sometimes this confuses me (as to "do i need to make this sta...
ah, scrap that, it's D!"), but sometimes this is handy. why? i'm still
have to use C sometimes, and i'm writing 'static' automatically. having
compiler to accept it for anything high-level saves me one regexp
search-and-replace. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140818/b0754009/attachment.sig>


More information about the Digitalmars-d-learn mailing list