Re: error with reading file name

2012-12-06 Thread ollie
On Thu, 06 Dec 2012 16:52:20 +0100, Suliman wrote: I am trying to create simple app that would read user input and open file with such name, but every time when I run it's crash with error std.file.FileException@std\file.d(294): \1.txt After a call to readln, the string returned has

Re: dynamic arrays of immutable question: Are the elements actually mutable

2013-01-09 Thread ollie
On Wed, 09 Jan 2013 14:38:13 +0100, monarch_dodra wrote: On Wednesday, 9 January 2013 at 12:38:13 UTC, Jonathan M Davis wrote: When you append to array, the elements being added are in untyped memory. So, no mutation of immutable anything is going on at all. Ok, I guess that makes sense.

Question about wchar[]

2013-02-04 Thread ollie
this wchar[] wstr; wstr ~= This is a wchar[]; If the compiler knows the type in the last example with concatenation, shouldn't it be able to figure that out in the first example. I am using windows and DMD HEAD. Thanks, ollie

Re: Question about wchar[]

2013-02-04 Thread ollie
On Mon, 04 Feb 2013 13:28:43 -0500, Steven Schveighoffer wrote: On Mon, 04 Feb 2013 13:13:22 -0500, ollie ol...@home.net wrote: wchar[] wstr = This is a wchar[]; It's not so much the wchar vs. char, but the mutable vs. immutable. It could be argued that the message should say wchar

Re: Question about wchar[]

2013-02-04 Thread ollie
On Mon, 04 Feb 2013 15:09:06 -0500, Steven Schveighoffer wrote: On Mon, 04 Feb 2013 14:45:02 -0500, ollie ol...@home.net wrote: What is the storage (heap/stack) of straight assignment if this were a local variable. Or do you mean that This is a wchar[] was already created on the heap

Re: GtkD DLL issues

2013-04-23 Thread ollie
Then it's indeed picing up the copy of zlib1.dll installed with the Intel WiFi tools instead of the one installed with Gtk+. But i don't know what could be done about that. Try opening a command prompt (cmd.exe) and setting the path of the gtk runtime before the Intel Wifi tools.

Re: How/why can toStringz() and toUTFz() be used as properties?

2013-04-26 Thread ollie
On Fri, 26 Apr 2013 09:31:54 +0200, Trey Brisbane wrote: I need to understand this, as I wish to write a function toWinStr() that can be used in the same way which will accept any string type, and, based on something like version(Unicode) and const-ness, output a WinAPI LPSTR, LPCSTR, LPWSTR

Re: std.net.curl is not working?

2013-04-26 Thread ollie
On Fri, 26 Apr 2013 19:25:16 +0200, mab wrote: undefined reference to `curl_global_init' undefined reference to `curl_global_cleanup' These functions are defined in libcurl. Make sure you have installed libcurl if it wasn't installed as a dependency for curl.

Re: Server is not active?

2013-09-27 Thread ollie
On Fri, 27 Sep 2013 03:22:32 +0200, wagtail wrote: A part of code shown below. /++ Server main() / ushort port = 9876; auto inet = new InternetAddress(0.0.0.0,port); Socket server = new

Re: Server is not active?

2013-09-28 Thread ollie
On Sat, 28 Sep 2013 08:42:16 +0200, wagtail wrote: I tried rewriting code with using ADDR_ANY, but do not work... Ali Çehreli posted some examples in the D.learn group earlier. He creates the socket then uses its member functions to setup the connection, but it should work either way. Try

Re: Server is not active?

2013-09-29 Thread ollie
On Sun, 29 Sep 2013 03:47:27 +0200, wagtail wrote: When my server and client are on the same machine,these succeed. If I try communicating with other machine via global network,it do not work. IP of my server which you say above should set to server side? When you instantiate your

Help with array maniipulation

2014-02-04 Thread ollie
ollie

Re: Help with array maniipulation

2014-02-04 Thread ollie
was looking for. I thought I had tried something like that. Too many moving parts with threads and context changes to call GDK/GTK functions make things very precarious. I am still getting an access violation, but your help has moved me a step nearer a solution. Thanks, ollie

Re: goto skips declaration of variable

2014-08-18 Thread ollie via Digitalmars-d-learn
On Mon, 18 Aug 2014 13:51:12 +, nrgyzer wrote: When I try to compile this sample application I'm getting the following error: sample.d(7): Error: goto skips declaration of variable sample.main.__ctmp1344 at sample.d(9) http://dlang.org/changelog.html#disable_goto_skips_init First