On Friday, 12 August 2022 at 02:13:48 UTC, bachmeier wrote:
Informative error message
I'm making something like an IDE.
The text search function in it is able to search across all user
modules.
I thought about filtering the search results by context.
The following contexts are planned already
On Thursday, 11 August 2022 at 22:34:11 UTC, realhet wrote:
On Thursday, 11 August 2022 at 19:33:31 UTC, bachmeier wrote:
std.string does a public import of std.algorithm.cmp.
That was it! Thanks!
Conclusion: This is how to overload cmp()
A search of the forum suggests [this is how I learne
On Thursday, 11 August 2022 at 19:33:31 UTC, bachmeier wrote:
std.string does a public import of std.algorithm.cmp.
That was it! Thanks!
Conclusion: This is how to overload cmp()
```d
//this is the only place from where all other modules can see
these std modules
public import std.string, s
On Thursday, 11 August 2022 at 18:32:54 UTC, realhet wrote:
On Thursday, 11 August 2022 at 18:10:31 UTC, Paul Backus wrote:
... If you remove `std.algorithm` from `testcmpmodule2`'s
`public import` line, the code compiles successfully.
Yes, but in the 40 module project I'm unable to make it wo
On Thursday, 11 August 2022 at 18:10:31 UTC, Paul Backus wrote:
... If you remove `std.algorithm` from `testcmpmodule2`'s
`public import` line, the code compiles successfully.
Yes, but in the 40 module project I'm unable to make it work.
I doublechecked that the only public import of std.algori
On Thursday, 11 August 2022 at 17:46:00 UTC, realhet wrote:
Here's the utility module:
```d
module testcmpmodule;
//publicly output these modules, like I did in my always used
'utils' module.
public import std.algorithm, std.math, std.stdio;
import std.range, std.traits;
//create function ov
Hello,
I try to make an overload group of cmp() functions in my utility
module but everything works well except when I import some 3rd
party module that imports std.algorithm. Then I get an error:
C:\D\testCmpOverload.d(11,8): Error:
function `std.algorithm.comparison.cmp!(string, string).cmp`