When I execute a program thanks to dub, `dub` also prints its
information to STDOUT:
[code]
$ dub run dusybox:jq -- .status " 1" <
/home/pi/df/acces.log |head -10
Building package dusybox:jq in /home/pi/projects/icy/dusybox/
Performing "debug" build using dmd for x86_64.
dusybox:jq
On Friday, 8 September 2017 at 23:04:07 UTC, kinke wrote:
On Friday, 8 September 2017 at 22:30:16 UTC, dark777 wrote:
ex3.d(19): Error: cannot pass dynamic arrays to extern(C)
vararg functions
printf("Writef Hello %.*s!\n", name.length, name.ptr);
puts por que é mais chato o printf aqui na
Hi,
As a system administrator I often have some small scripts/
programs that consume input and produce output for other system
utilities. Something like `my_foo_program | awk ... |
other_program`. As the tools write to STDOUT/STDERR, I haven't
found a way to write unit tests for them. Should
There is this little table in
https://dlang.org/spec/function.html#inout-functions:
Common qualifier of the two type qualifiers
mutable const immutable inout inout const
mutable (= m) m c c c c
const (= c)c c c c c
On 09/08/2017 11:21 AM, Vino.B wrote:
> One final help on how to print the below
> output , just in case if this issue is fixed in next release,
>
> Output:
> [Tuple!string("C:\\Temp\\sapnas2\\BACKUP\\dir1"),
> Tuple!string("C:\\Temp\\sapnas2\\BACKUP\\DND5")][34, 4]
>
> Required output:
>
On Friday, 8 September 2017 at 22:30:16 UTC, dark777 wrote:
ex3.d(19): Error: cannot pass dynamic arrays to extern(C)
vararg functions
printf("Writef Hello %.*s!\n", name.length, name.ptr);
estava rodando este programa porem acrescentei o printf mas como
resolver o erro?
bash-4.4$ rdmd ex3
ex3.d(19): Error: cannot pass dynamic arrays to extern(C) vararg
functions
Failed: ["dmd", "-v", "-o-", "ex3.d", "-I."]
import std.stdio;
import std.string; //strip
import core.stdc.stdio;
On Friday, 8 September 2017 at 16:10:55 UTC, Biotronic wrote:
On Friday, 8 September 2017 at 12:32:35 UTC, Jiyan wrote:
[...]
It's scoped!T's destructor. If you decide to use that
workaround, you should probably copy scoped!T from std.typecons
and have your own version. It's not safe in all
On Friday, 8 September 2017 at 15:39:21 UTC, pezi_pink wrote:
On Friday, 8 September 2017 at 15:08:27 UTC, Vadim Lopatin
wrote:
On Friday, 8 September 2017 at 12:10:23 UTC, pezi_pink wrote:
[...]
It's known issue:
https://github.com/buggins/dlangui/issues/278
Not sure if there is any
On Friday, 8 September 2017 at 16:58:35 UTC, Ali Çehreli wrote:
On 09/08/2017 07:48 AM, Vino.B wrote:
> if
> std.container.array.RangeT(A) is deprecated
No, it's not deprecated. It's a private symbol of the
std.container.array module. You shouldn't be able to use it at
all. The fact that you
On 09/08/2017 07:48 AM, Vino.B wrote:
> if
> std.container.array.RangeT(A) is deprecated
No, it's not deprecated. It's a private symbol of the
std.container.array module. You shouldn't be able to use it at all. The
fact that you are able to use it is due to a bug fix, which hasn't been
fully
On Friday, 8 September 2017 at 15:47:39 UTC, Vino.B wrote:
On Friday, 8 September 2017 at 14:48:38 UTC, Vino.B wrote:
Hi All,
The below code output's the below warning, so if
std.container.array.RangeT(A) is deprecated then what is the
equivalent for this, request your help on this.
On Friday, 8 September 2017 at 15:48:47 UTC, Vino.B wrote:
On Friday, 8 September 2017 at 12:14:46 UTC, Vino.B wrote:
On Friday, 8 September 2017 at 09:51:38 UTC, Ali Çehreli wrote:
[...]
Hi Ali,
As stated earlier my release 1 code are still using
std.array, so now in release 2 i am
On Friday, 8 September 2017 at 12:32:35 UTC, Jiyan wrote:
On Friday, 8 September 2017 at 06:37:54 UTC, Biotronic wrote:
On Thursday, 7 September 2017 at 23:40:11 UTC, Jiyan wrote:
[...]
Sadly, even std.typecons.scoped isn't currently @nogc:
https://issues.dlang.org/show_bug.cgi?id=13972
On Friday, 8 September 2017 at 12:14:46 UTC, Vino.B wrote:
On Friday, 8 September 2017 at 09:51:38 UTC, Ali Çehreli wrote:
On 09/07/2017 11:21 PM, Vino.B wrote:
> At last was able to print the output, but i am getting some
> "Deprecation" warnings like below and also can you help me in
On Friday, 8 September 2017 at 14:48:38 UTC, Vino.B wrote:
Hi All,
The below code output's the below warning, so if
std.container.array.RangeT(A) is deprecated then what is the
equivalent for this, request your help on this.
Warning :
Size.d(10): Deprecation: std.container.array.RangeT(A)
On Friday, 8 September 2017 at 15:08:27 UTC, Vadim Lopatin wrote:
On Friday, 8 September 2017 at 12:10:23 UTC, pezi_pink wrote:
[...]
It's known issue:
https://github.com/buggins/dlangui/issues/278
Not sure if there is any workaround.
Ah, thanks for the reply. I did check the issues on
On Thursday, 7 September 2017 at 12:24:40 UTC, TM wrote:
Это понятно, что у Java своя организационная специфика, в
принципе если в диалоге создание файла минимизировать
количество кликов, то есть сразу вводишь имя файла с клавиатуры
и кнопка создания будет реагировать на Entrer (а не Ctrl+N),
On Friday, 8 September 2017 at 12:10:23 UTC, pezi_pink wrote:
I am having some seemingly basic problems using the TreeWidget
from DLangUI on Windows. I posted on the project's gitter
channel some time ago but did not get any response.
All I am trying to do is add children to the tree's nodes
Hi All,
The below code output's the below warning, so if
std.container.array.RangeT(A) is deprecated then what is the
equivalent for this, request your help on this.
Warning :
Size.d(10): Deprecation: std.container.array.RangeT(A) is not
visible from module Size
Size.d(10): Deprecation:
On Wednesday, 6 September 2017 at 18:34:28 UTC, Timothy Foster
wrote:
I'm just wondering if I made an application for
Windows/Mac/Linux if I could get it to also work on mobile
devices, or would I have to rewrite the application in another
language to get it to work? If it's possible, what
On Friday, 8 September 2017 at 06:37:54 UTC, Biotronic wrote:
On Thursday, 7 September 2017 at 23:40:11 UTC, Jiyan wrote:
[...]
Sadly, even std.typecons.scoped isn't currently @nogc:
https://issues.dlang.org/show_bug.cgi?id=13972
https://issues.dlang.org/show_bug.cgi?id=17592
[...]
First
On Friday, 8 September 2017 at 09:51:38 UTC, Ali Çehreli wrote:
On 09/07/2017 11:21 PM, Vino.B wrote:
> At last was able to print the output, but i am getting some
> "Deprecation" warnings like below and also can you help me in
formating
> the output to display ulong.
>
> Output:
> Size.d(9):
I am having some seemingly basic problems using the TreeWidget
from DLangUI on Windows. I posted on the project's gitter
channel some time ago but did not get any response.
All I am trying to do is add children to the tree's nodes at
runtime. The simple code below attempts to add a new node
Hi,
is there any simple method to redirect STDOUT to socket?
All solutions I found until now (dup2, openNetwork) are available
for linux only or have been deprecated.
Thanks in advance.
Best regards,
Maurizio
Although I responded below, I'm curious on what others think about this
question.
On 09/08/2017 02:13 AM, John Burton wrote:
> I wrote this simple program to test out my understanding of memory
> allocation :-
I changed it to display the location and capacity:
import std.stdio;
void
On 09/07/2017 11:21 PM, Vino.B wrote:
> At last was able to print the output, but i am getting some
> "Deprecation" warnings like below and also can you help me in formating
> the output to display ulong.
>
> Output:
> Size.d(9): Deprecation: std.container.array.RangeT(A) is not visible
> from
I wrote this simple program to test out my understanding of
memory allocation :-
import std.stdio;
void main()
{
int [] array = new int[250];
writeln(array.length, " elements ", array);
// Append one value to the array
array ~= 123;
It's a compiled language, it'll behave like c++.
2017-09-08 7:13 GMT+02:00 dark777 via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com>:
> On Friday, 8 September 2017 at 03:56:25 UTC, rikki cattermole wrote:
>
>> On 08/09/2017 3:08 AM, dark777 wrote:
>>
>>> On Friday, 8 September 2017 at
On Thursday, 7 September 2017 at 23:40:11 UTC, Jiyan wrote:
Hey,
wanted to know whether it is possible to make anonymous nogc
classes:
interface I
{
public void ap();
}
void exec(I i)
{
i.ap;
}
// now execute, but with something like `scope`
exec( new class I
{
int
On Thursday, 7 September 2017 at 20:47:43 UTC, Ali Çehreli wrote:
On 09/07/2017 10:39 AM, Vino.B wrote:
> Array!(Tuple!(string, ulong)) coSizeDirList () {
You stated the return type explicitly above.
> return tuple (dFiles[], Subdata[]);
According to the error message, what is
31 matches
Mail list logo