www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Please add the sample code to the document.

reply zoujiaqing <zoujiaqing gmail.com> writes:
look this doc, not found some examples:
https://dlang.org/phobos/core_stdcpp_string.html

look php doc, have it:
https://www.php.net/manual/en/mysqli.query.php
Jul 14 2020
next sibling parent aberba <karabutaworld gmail.com> writes:
On Wednesday, 15 July 2020 at 02:01:14 UTC, zoujiaqing wrote:
 look this doc, not found some examples:
 https://dlang.org/phobos/core_stdcpp_string.html

 look php doc, have it:
 https://www.php.net/manual/en/mysqli.query.php
Yeah, the PHP docs is the gold standard. Part of why PHP is relatively easy to pick up especially for new users. With D, we're still getting there. I'm looking into the website documentation. Trying to figure out how to contribute to the docs myself.
Jul 15 2020
prev sibling parent reply Paul Backus <snarwin gmail.com> writes:
On Wednesday, 15 July 2020 at 02:01:14 UTC, zoujiaqing wrote:
 look this doc, not found some examples:
 https://dlang.org/phobos/core_stdcpp_string.html

 look php doc, have it:
 https://www.php.net/manual/en/mysqli.query.php
I think D's policy is not to provide its own duplicated documentation for bindings to the C and C++ standard libraries. It might be a good idea to link to the <string> documentation on cppreference.com [1], though. The D docs *should* provide an example for how to default-construct a C++ basic_string, since the D API in that case is different from the C++ version. [1] https://en.cppreference.com/w/cpp/header/string
Jul 15 2020
parent zoujiaqing <zoujiaqing gmail.com> writes:
On Wednesday, 15 July 2020 at 14:04:04 UTC, Paul Backus wrote:
 On Wednesday, 15 July 2020 at 02:01:14 UTC, zoujiaqing wrote:
 look this doc, not found some examples:
 https://dlang.org/phobos/core_stdcpp_string.html

 look php doc, have it:
 https://www.php.net/manual/en/mysqli.query.php
I think D's policy is not to provide its own duplicated documentation for bindings to the C and C++ standard libraries. It might be a good idea to link to the <string> documentation on cppreference.com [1], though. The D docs *should* provide an example for how to default-construct a C++ basic_string, since the D API in that case is different from the C++ version. [1] https://en.cppreference.com/w/cpp/header/string
I think .. all standard libraries and runtimes should have corresponding sample code.
Jul 18 2020