Re: dub build doesn't work

2019-10-22 Thread Justin Stephens via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 22:14:02 UTC, OiseuKodeur wrote: Hello, i am having a problem with dub build with this project https://github.com/OiseauKodeur/cervelet/tree/master/source when i try to compile everything go well but when i click to run the .exe it give my an error missing

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 05:58:50 UTC, Prokop Hapala wrote: I'm examining the possibility to move from Python+C/C++ to D or Python+D. I read (https://wiki.dlang.org/Programming_in_D_for_Python_Programmers) and (https://jackstouffer.com/blog/nd_slice.html), where is mentioned PyD,

Re: Why isn't skipOver(string, string) nothrow?

2019-10-22 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, October 22, 2019 4:27:59 PM MDT Per Nordlöw via Digitalmars-d- learn wrote: > On Tuesday, 22 October 2019 at 15:39:17 UTC, Adam D. Ruppe wrote: > > On Tuesday, 22 October 2019 at 15:33:05 UTC, Per Nordlöw wrote: > >> Why isn't a call to > >> > >> skipOver(string, string) > >> > >>

Re: Why isn't skipOver(string, string) nothrow?

2019-10-22 Thread Per Nordlöw via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 15:39:17 UTC, Adam D. Ruppe wrote: On Tuesday, 22 October 2019 at 15:33:05 UTC, Per Nordlöw wrote: Why isn't a call to skipOver(string, string) nothrow? without really looking, probably because of invalid utf sequences potentially throwing. Using the

dub build doesn't work

2019-10-22 Thread OiseuKodeur via Digitalmars-d-learn
Hello, i am having a problem with dub build with this project https://github.com/OiseauKodeur/cervelet/tree/master/source when i try to compile everything go well but when i click to run the .exe it give my an error missing msvcr100.dll, but with rdmd the program run fine

Re: ... use of ... is hidden by ...; use alias ... to introduce base class overload set ??

2019-10-22 Thread Ali Çehreli via Digitalmars-d-learn
On 10/22/2019 01:23 PM, Robert M. Münch wrote: > The whole code > can be found here: https://pastebin.com/5BTT16Ze That says "private paste" for me. But I think you have a member function template in the base class. Unfortunately, member function template instances are never virtual

Re: ... use of ... is hidden by ...; use alias ... to introduce base class overload set ??

2019-10-22 Thread Robert M. Münch via Digitalmars-d-learn
On 2019-10-21 18:02:06 +, Robert M. Münch said: This now gives: rx_filter_subject.d(66,23): Error: rx_filter_subject.FilterSubject.subscribe called with argument types (myWidget) matches both: /Users/robby/.dub/packages/rx-0.13.0/rx/source/rx/subject.d(72,16):

Re: Why isn't skipOver(string, string) nothrow?

2019-10-22 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, October 22, 2019 9:33:05 AM MDT Per Nordlöw via Digitalmars-d- learn wrote: > Why isn't a call to > > skipOver(string, string) > > nothrow? > > I see no reason why it shouldn't be. > > Further, this test should be qualifyable as nothrow: > > @safe pure /* TODO nothrow @nogc */

Re: How to use classes from another d files

2019-10-22 Thread Daniel Kozak via Digitalmars-d-learn
On Tue, Oct 22, 2019 at 8:30 PM Vinod K Chandran via Digitalmars-d-learn wrote: > > On Tuesday, 22 October 2019 at 17:38:58 UTC, Adam D. Ruppe wrote: > > On Tuesday, 22 October 2019 at 17:34:51 UTC, Vinod K Chandran > > wrote: > >> Hi all, > >> I am new to D. But some fair experience with vb.net.

Re: How to use classes from another d files

2019-10-22 Thread Ali Çehreli via Digitalmars-d-learn
On 10/22/2019 11:25 AM, Vinod K Chandran wrote: > On Tuesday, 22 October 2019 at 17:38:58 UTC, Adam D. Ruppe wrote: >> On Tuesday, 22 October 2019 at 17:34:51 UTC, Vinod K Chandran wrote: >>> Hi all, >>> I am new to D. But some fair experience with vb.net. I was playing >>> with D classes. I

Re: How to use classes from another d files

2019-10-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 18:21:36 UTC, Vinod K Chandran wrote: But what if there is too many include files ? The dmd -i thing will do that for you dmd -i main.d and it will automatically find the others, assuming they are laid out so the module/import name matches the file name

Re: How to use classes from another d files

2019-10-22 Thread Vinod K Chandran via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 17:38:58 UTC, Adam D. Ruppe wrote: On Tuesday, 22 October 2019 at 17:34:51 UTC, Vinod K Chandran wrote: Hi all, I am new to D. But some fair experience with vb.net. I was playing with D classes. I wrote a class in a D file. The file name is "classFile.d" did

Re: How to use classes from another d files

2019-10-22 Thread Vinod K Chandran via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 17:40:11 UTC, Arun Chandrasekaran wrote: On Tuesday, 22 October 2019 at 17:34:51 UTC, Vinod K Chandran wrote: Hi all, I am new to D. But some fair experience with vb.net. I was playing with D classes. I wrote a class in a D file. The file name is "classFile.d"

Re: How to use classes from another d files

2019-10-22 Thread Arun Chandrasekaran via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 17:34:51 UTC, Vinod K Chandran wrote: Hi all, I am new to D. But some fair experience with vb.net. I was playing with D classes. I wrote a class in a D file. The file name is "classFile.d" ```D class TestClass { [...] What you are seeing is a linker error.

Re: How to use classes from another d files

2019-10-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 17:34:51 UTC, Vinod K Chandran wrote: Hi all, I am new to D. But some fair experience with vb.net. I was playing with D classes. I wrote a class in a D file. The file name is "classFile.d" did you compile with dmd -i or list both files on the dmd command

How to use classes from another d files

2019-10-22 Thread Vinod K Chandran via Digitalmars-d-learn
Hi all, I am new to D. But some fair experience with vb.net. I was playing with D classes. I wrote a class in a D file. The file name is "classFile.d" ```D class TestClass { int myIntVar; string myStringVar ; this(int miv, string msv) { this.myIntVar = miv ;

Re: Why isn't skipOver(string, string) nothrow?

2019-10-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 15:33:05 UTC, Per Nordlöw wrote: Why isn't a call to skipOver(string, string) nothrow? without really looking, probably because of invalid utf sequences potentially throwing. Using the .representation thingy might help if im right about this. A good way

Why isn't skipOver(string, string) nothrow?

2019-10-22 Thread Per Nordlöw via Digitalmars-d-learn
Why isn't a call to skipOver(string, string) nothrow? I see no reason why it shouldn't be. Further, this test should be qualifyable as nothrow: @safe pure /* TODO nothrow @nogc */ unittest { import std.algorithm.searching : skipOver; auto x = "beta version";

What do you think about About C++20 Concepts?

2019-10-22 Thread lili via Digitalmars-d-learn
Hi: In C++20 Concepts is great idear. but I thinks it is too difficult to write. I like Rust traits simple and elegancy.

Re: undefined symbol: _D3std7variant...

2019-10-22 Thread Andrey via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 12:57:45 UTC, Daniel Kozak wrote: Have you try to clean all caches? Try to remove .dub folder I removed .dub folder but this error appears again.

Re: undefined symbol: _D3std7variant...

2019-10-22 Thread Daniel Kozak via Digitalmars-d-learn
On Tue, Oct 22, 2019 at 2:20 PM Andrey via Digitalmars-d-learn wrote: > > Hello, > During compilation on linking stage I get strange errors (LDC): > lld-link: error: undefined symbol: >

Blog Post #81: Notebook, Part V - Customized Tabs, Part III

2019-10-22 Thread Ron Tarrant via Digitalmars-d-learn
Today we wrap up the customized tabs discussion as we look at the drawing routines. It's here: https://gtkdcoding.com/2019/10/22/0081-notebook-v-custom-tabs-iii.html

undefined symbol: _D3std7variant...

2019-10-22 Thread Andrey via Digitalmars-d-learn
Hello, During compilation on linking stage I get strange errors (LDC): lld-link: error: undefined symbol: _D3std7variant__T8VariantNVmi56TSQBf8typecons__T5TupleTAyuTSQCgQCf__TQCaVmi32TSQCzQBu__TQBoTAQBmTQBqZQCbTQnTQCbZQDrZQCqTQBcTQCrZQEh4typeMxFNbNdNeZC8TypeInfo referenced by

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Andre Pany via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 08:30:36 UTC, Daniel Kozak wrote: On Tue, Oct 22, 2019 at 10:25 AM Prokop Hapala via Digitalmars-d-learn wrote: ... Also where is RDMD in the equation? I really like the idea run binary programs like: #!/usr/bin/env rdmd import std.stdio; void main(){

Thread synchronization context

2019-10-22 Thread mireczech via Digitalmars-d-learn
Hello everyone, Recently, a few days ago I discovered dlang and I really like it. It's a programming language which meets to my idea of what a modern programming language should look like. I decided to do one project in it. Now I am addressing one problem. I have two threads, one main and

Re: -cov option ignored?

2019-10-22 Thread drkameleon via Digitalmars-d-learn
The same seems to be happening for profile-gc as well. No output is being produced, or I'm blind - I don't know... For profiling, I build the project with: dub build --build=profile --compiler=ldc2 --config=light Any ideas are more than welcome!

-cov option ignored?

2019-10-22 Thread drkameleon via Digitalmars-d-learn
I'm building a project with dub and no-matter-what I cannot get the compiler to output Code Coverage information. This is my dub.json. What am I doing wrong? { "authors": [ "drkameleon" ], "buildTypes": { "profile": {

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Daniel Kozak via Digitalmars-d-learn
On Tue, Oct 22, 2019 at 10:25 AM Prokop Hapala via Digitalmars-d-learn wrote: > > ... > > Also where is RDMD in the equation? I really like the idea run > binary programs like: > > #!/usr/bin/env rdmd > import std.stdio; > void main(){ > writeln("Hello, world!"); > } > > But I cannot find

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Prokop Hapala via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 08:04:32 UTC, Arun Chandrasekaran wrote: On Tuesday, 22 October 2019 at 07:51:16 UTC, Arun Chandrasekaran wrote: On Tuesday, 22 October 2019 at 07:40:01 UTC, Prokop Hapala wrote: [...] If you are building individual files, use ldc2 with

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Arun Chandrasekaran via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 07:51:16 UTC, Arun Chandrasekaran wrote: On Tuesday, 22 October 2019 at 07:40:01 UTC, Prokop Hapala wrote: [...] If you are building individual files, use ldc2 with --link-defaultlib-shared flag: arun@home-pc:/tmp$ cat a.d void main() { import std;

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 07:40:01 UTC, Prokop Hapala wrote: 1) I'm not speaking about OpenGL and SDL specifically (that was just small example which I tried first) FYI, the BindBC bindings can be configured as dynamic (in which all the of C library functions are declared as function

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Arun Chandrasekaran via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 07:40:01 UTC, Prokop Hapala wrote: On Tuesday, 22 October 2019 at 07:23:46 UTC, Daniel Kozak wrote: On Tue, Oct 22, 2019 at 8:00 AM Prokop Hapala via Digitalmars-d-learn wrote: I'm examining the possibility to move from Python+C/C++ to D or Python+D. I read

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Prokop Hapala via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 07:23:46 UTC, Daniel Kozak wrote: On Tue, Oct 22, 2019 at 8:00 AM Prokop Hapala via Digitalmars-d-learn wrote: I'm examining the possibility to move from Python+C/C++ to D or Python+D. I read (https://wiki.dlang.org/Programming_in_D_for_Python_Programmers) and

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Daniel Kozak via Digitalmars-d-learn
On Tue, Oct 22, 2019 at 8:00 AM Prokop Hapala via Digitalmars-d-learn wrote: > > I'm examining the possibility to move from Python+C/C++ to D or > Python+D. I read > (https://wiki.dlang.org/Programming_in_D_for_Python_Programmers) > and > (https://jackstouffer.com/blog/nd_slice.html), where is

Re: contains method on immutable sorted array

2019-10-22 Thread Andrey via Digitalmars-d-learn
On Monday, 21 October 2019 at 20:44:29 UTC, Nicholas Wilson wrote: works, so I guess contains doesn't work with immutable? If you can do some more research into this and confirm it then, please file a bug report. As I understand - yes. It doesn't work with immutable object. Also I see the