FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error on tango.net.http.HttpGet.read

 
Post new topic   Reply to topic     Forum Index -> LDC
View previous topic :: View next topic  
Author Message
killux



Joined: 03 Oct 2009
Posts: 1
Location: Germany

PostPosted: Sat Oct 03, 2009 3:09 am    Post subject: Error on tango.net.http.HttpGet.read Reply with quote

Hi,

compiling this code results in an error message:

Code:
import tango.io.Console;
import tango.net.http.HttpGet;

void main ()
{
    auto site = new HttpGet ("http://www.dsource.org/projects/ldc");
    Cout (cast(char[]) site.read) ();
}


Code:
$ ldc --version
LLVM D Compiler rev. 1583:593f99fddd2f (2009-09-22 20:26 +0200)
based on DMD v1.045 and llvm 2.6 (2009-10-01 17:12:41 +0200)


Code:
$ ldc test.d
$ ./test
Illegal instruction


I can't explain why this should be wrong, since it is mentioned in the documentation for HttpGet, too.

Thus, I suppose that it is a LDC related bug and not caused by Tango itself.

Cheers

Sebastian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> LDC All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group