Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

auto auto function template in DLang

Tags:

syntax

d

From https://dlang.org/library/std/typecons/nullable.html:

auto auto nullable(T) (
  T t
);

What is this "double auto"?

like image 649
porton Avatar asked Jun 13 '26 22:06

porton


1 Answers

It's a bug in the Ddox documentation generator. You can use Ddoc: https://dlang.org/phobos/std_typecons

Ddoc (DMD's built-in documentation generator) was there in the beginning and is the older system. Ddox was intended to be a replacement and thus both version are online, so that Ddox could be battle-tested. However, it still has a few issues which is why it hasn't replaced DMD's built-in documentation generator so far.

like image 134
greenify Avatar answered Jun 15 '26 23:06

greenify



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!