Like Go/Rust, why not to have "func" keyword before function declaration
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jan 20 05:47:01 PST 2015
On Mon, 19 Jan 2015 22:35:16 -0300
Ary Borenszweig via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> On 1/19/15 9:17 PM, Walter Bright wrote:
> > On 1/19/2015 2:49 PM, Ary Borenszweig wrote:
> >> So... how do you search for a function definition in D without an IDE?
> >
> > I do a text search for the name of the function.
> >
> > I've been programming in C, C++, and D for 30 years without an IDE. It
> > never occurred to me that this was not doable :-)
>
> But the results will also contain invocations of that function. Do you
> go one by one until you find the definition?
heh.
void function foo () { ... }
foo();
do you see the subtle difference? yes, that tiny whitespace in
declaration. i borrowed that habit from some Oberon code decades ago,
and it serves me well since then.
-------------- 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/attachments/20150120/8f726898/attachment.sig>
More information about the Digitalmars-d
mailing list