Jump to page: 1 2
Thread overview
function app.download (string[] links) is not callableusing argument types (string, string)
Nov 27, 2014
Suliman
Nov 27, 2014
Suliman
Nov 27, 2014
Suliman
Nov 27, 2014
Daniel Kozák
Nov 27, 2014
Evil Satanson
Nov 27, 2014
Suliman
Nov 27, 2014
Suliman
Nov 27, 2014
Suliman
Nov 27, 2014
Suliman
Nov 27, 2014
Daniel Kozak
Nov 27, 2014
Evil Satanson
November 27, 2014
I try to compile simple example:

import std.net.curl;

void main()
{
download("ftp.digitalmars.com/sieve.ds", "D:\\Project\\2014\\txt_downloader\\img\\1.foo");

}

but I am getting error:

function app.download (string[] links) is not callableusing argument types (string, string)
November 27, 2014
Look like it was missed installation or so. I installed new copy of dmd and error gone away.
November 27, 2014
The downloading still do not work. Work only:

get("dlang.org");
November 27, 2014
V Thu, 27 Nov 2014 13:39:40 +0000
Suliman via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
napsáno:

> I try to compile simple example:
> 
> import std.net.curl;
> 
> void main()
> {
> download("ftp.digitalmars.com/sieve.ds",
> "D:\\Project\\2014\\txt_downloader\\img\\1.foo");
> 
> }
> 
> but I am getting error:
> 
> function app.download (string[] links) is not callableusing argument types (string, string)
please try std.net.curl.download("ftp.digitalmars.com/sieve.ds", "D:\\Project\\2014\\txt_downloader\\img\\1.foo");

seems you have some name colision

November 27, 2014
On Thursday, 27 November 2014 at 13:39:41 UTC, Suliman wrote:
> I try to compile simple example:
>
> import std.net.curl;
>
> void main()
> {
> download("ftp.digitalmars.com/sieve.ds", "D:\\Project\\2014\\txt_downloader\\img\\1.foo");
>
> }
>
> but I am getting error:
>
> function app.download (string[] links) is not callableusing argument types (string, string)

You are fucking retard, bro :) This code works, but you're not showing the rest of it :-D
November 27, 2014
On Thursday, 27 November 2014 at 14:35:08 UTC, Daniel Kozák via Digitalmars-d-learn wrote:
> V Thu, 27 Nov 2014 13:39:40 +0000
> Suliman via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
> napsáno:
>
>> I try to compile simple example:
>> 
>> import std.net.curl;
>> 
>> void main()
>> {
>> download("ftp.digitalmars.com/sieve.ds", "D:\\Project\\2014\\txt_downloader\\img\\1.foo");
>> 
>> }
>> 
>> but I am getting error:
>> 
>> function app.download (string[] links) is not callableusing argument types (string, string)
> please try std.net.curl.download("ftp.digitalmars.com/sieve.ds",
> "D:\\Project\\2014\\txt_downloader\\img\\1.foo");
>
> seems you have some name colision

He has, I've seen his whole code. And it's pretty obviuse :-D Let him guess what it is xD
November 27, 2014
Running .\txtdownloader.exe
std.stream.OpenException@std\stream.d(50): Cannot open or create file 'D:\Projec
t\2014\txt_downloader\img\1.foo'
----------------
0x0041BA59 in void std.stream.File.open(immutable(char)[], std.stream.FileMode)
0x00404B75 in void std.net.curl.download!(std.net.curl.AutoProtocol).download(co
nst(char)[], immutable(char)[], std.net.curl.AutoProtocol) at C:\DMD\dmd2\window
s\bin\..\..\src\phobos\std\net\curl.d(268)
0x00402038 in _Dmain
0x0041250C in void rt.dmain2._d_run_main(int, char**, extern (C) int function(ch
ar[][])*).runAll().void __lambda1()
0x004124DF in void rt.dmain2._d_run_main(int, char**, extern (C) int function(ch
ar[][])*).runAll()
0x004123F8 in _d_run_main
0x0040D268 in main
0x0045CF9D in mainCRTStartup
0x75C0336A in BaseThreadInitThunk
0x77679F72 in RtlInitializeExceptionChain
0x77679F45 in RtlInitializeExceptionChain
Error executing command run: Program exited with code 1
November 27, 2014
Oh! It's work! I forgot to change path on my home PC!
November 27, 2014
Is there any way to detect where collision was occurred?
November 27, 2014
On Thursday, 27 November 2014 at 17:39:10 UTC, Suliman wrote:
> Is there any way to detect where collision was occurred?

It's look like collision was with method name.
« First   ‹ Prev
1 2