@mutable
Guillaume Chatelet via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 23 01:15:02 PST 2016
On Monday, 22 February 2016 at 18:03:03 UTC, Nick Treleaven wrote:
> On Monday, 22 February 2016 at 17:28:03 UTC, Guillaume Chatelet
> wrote:
>>> static make() {
>>
>> The return type is missing for the make() function:
>
> I'm pretty sure static here works just like 'static auto'. In D
> I think you can use storage classes (and even attributes) to
> imply auto:
>
> const foo(){return 5;}
>
> assert(foo() == 5);
Ha right indeed it's probably going to work. It was just a bit
surprising.
More information about the Digitalmars-d
mailing list