Idea for getting rid of "static" on methods
Bill Baxter
dnewsgroup at billbaxter.com
Fri Nov 30 11:04:19 PST 2007
Matti Niemenmaa wrote:
> Bill Baxter wrote:
>> Something like no(this) was the first thing that came to mind, but that's not
>> a keyword so I went trolling through the keyword index to see if there was
>> anything else suitable.
>
> How about:
>
> (!this) int my_method() {...}
> (!in this) int my_method() {...}
> (with !this) int my_method() {...}
> (!with this) int my_method() {...}
> (is !in this) int my_method() {...}
> (!is in this) int my_method() {...}
> (this !is in this) int my_method() {...}
> (this is !in this) int my_method() {...}
>
> Where in the latter two, the first 'this' of course refers to the method.
>
Now you're on to something! Just tweak that last one slightly:
(this is !in function) int my_method() {...}
Perfect!
:-P
More information about the Digitalmars-d
mailing list