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

Search found 4 matches
Forum Index
Author Message
  Topic: const(char)[] to string conversion
Hero Doug

Replies: 3
Views: 12522

PostForum: General   Posted: Sun Mar 22, 2009 8:49 pm   Subject: const(char)[] to string conversion
Thanks for the reply, I'll keep that in mind if I run into a similar situation.
  Topic: const(char)[] to string conversion
Hero Doug

Replies: 3
Views: 12522

PostForum: General   Posted: Sun Mar 22, 2009 3:30 am   Subject: const(char)[] to string conversion
SOlution:

I changed string[char[]] pairs; to string[string] pairs; I can now use the key value directly.
  Topic: const(char)[] to string conversion
Hero Doug

Replies: 3
Views: 12522

PostForum: General   Posted: Sun Mar 22, 2009 2:33 am   Subject: const(char)[] to string conversion
I'd like to know how I go about converting/copying the contents of const(char)
foreach (const(char)[] key, string value; this.pairs) {
writeln(ke ...
  Topic: Can't use modules functions in main function?
Hero Doug

Replies: 2
Views: 6812

PostForum: General   Posted: Sun Aug 17, 2008 7:22 am   Subject: Can't use modules functions in main function?
This is fairly similar to the example given on the Digital Mars site, yet it does not work, can't figure out why.

WHen I try to call a modules function from the main method I get a compile error, b ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group