On Thursday, 30 January 2020 at 13:23:17 UTC, Adam D. Ruppe wrote:
On Thursday, 30 January 2020 at 06:12:32 UTC, Michael wrote:
I did exactly just what you proposed.
yeah i often just leave my random filenames in there, in this
case rl was one of them. (if you don't put `.d` at the end of a
On Thursday, 30 January 2020 at 06:12:32 UTC, Michael wrote:
I did exactly just what you proposed.
yeah i often just leave my random filenames in there, in this
case rl was one of them. (if you don't put `.d` at the end of a
filename, dmd will add it automatically). Generally a "module X
is
On Thursday, 30 January 2020 at 08:13:16 UTC, Mike Parker wrote:
That means any arguments you pass on the command line after the
source file name will be passed to your program. Compiler
options need to go before the source file name.
rdmd -L-lreadline mysource.d
That works, thanks Mike
On Thursday, 30 January 2020 at 06:27:36 UTC, Michael wrote:
On Thursday, 30 January 2020 at 06:15:54 UTC, Mike Parker wrote:
Is your source file named rl.d? And are you running dmd in the
source file's directory?
No, I did not. Changed it now and it works with dmd. Great!
Tried the same with
On Thursday, 30 January 2020 at 06:15:54 UTC, Mike Parker wrote:
Is your source file named rl.d? And are you running dmd in the
source file's directory?
No, I did not. Changed it now and it works with dmd. Great!
Tried the same with rdmd I'm getting a linker error.
On Thursday, 30 January 2020 at 06:12:32 UTC, Michael wrote:
When 'dmd rl -L-lreadline' in the command line. I do get the
following error:
Error: module rl is in file 'rl.d' which cannot be read.
So probably I'm missing something unfortunately I don't know
what.
Is your source file named rl
On Wednesday, 29 January 2020 at 21:15:08 UTC, Adam D. Ruppe
wrote:
On Wednesday, 29 January 2020 at 20:01:32 UTC, Michael wrote:
I am new to D.
I would like to use the Gnu readline function in D. Is there a
module that i can use?
just define it yourself
---
// this line right here is all y
On Wednesday, 29 January 2020 at 22:10:04 UTC, bachmeier wrote:
That's pretty cool. I didn't know anything about this. Taking
the example from here:
Yeah, readline is a really nice lib, super simple interface. I
think it is in large part responsible for the GPL's success too
since it is so us
On Wednesday, 29 January 2020 at 21:15:08 UTC, Adam D. Ruppe
wrote:
On Wednesday, 29 January 2020 at 20:01:32 UTC, Michael wrote:
I am new to D.
I would like to use the Gnu readline function in D. Is there a
module that i can use?
just define it yourself
---
// this line right here is all y
On Wednesday, 29 January 2020 at 20:01:32 UTC, Michael wrote:
I am new to D.
I would like to use the Gnu readline function in D. Is there a
module that i can use?
just define it yourself
---
// this line right here is all you need to call the function
extern(C) char* readline(const char*);
On Wednesday, 29 January 2020 at 20:01:32 UTC, Michael wrote:
I am new to D.
I would like to use the Gnu readline function in D. Is there a
module that i can use?
Found this. But code.dlang.org is having some issues right now.
Try accessing it after some time.
https://code.dlang.org/package
I am new to D.
I would like to use the Gnu readline function in D. Is there a
module that i can use?
12 matches
Mail list logo