Re: Can't compile DFL Program

2011-07-21 Thread ray96_28139
Thanks for that. I had thought about that, I remember doing it when I installed it but the console flashed too quickly to see if it had succeeded. I went to the command line and did it myself. I got an error from DFL saying the installation was bad and to run a command to redo it. I did that and th

Re: Can't compile DFL Program

2011-07-21 Thread Jesse Phillips
ray96_28...@yahoo.com Wrote: > I've compiled it many ways. I've added the DFL lib folders to the > sc.ini file too. D-IDE compiles it with this command: > > C:\D\dmd2\windows\bin\dmd.exe "obj\Module1.obj" "C:\dmd\import\dfl" > "C:\dmd\lib" "C:\Users\Rayburn\Downloads\dwt-win-importlibs\libs" > -

Re: _popen alternative in D?

2011-07-21 Thread Vladimir Panteleev
On Fri, 22 Jul 2011 01:47:28 +0300, Andrej Mitrovic wrote: On 7/22/11, Vladimir Panteleev wrote: Would it be possible to fix the ridiculously low open FILE limit on Windows as well? I've run into this issue as well. How low is it exactly? Seems to be 60, including the 3 standard streams

Re: Windows GDC and libgcc_s_sjlj-1.dll

2011-07-21 Thread Andre Tampubolon
-static-libgcc didn't work gdc dhello.d -o dhello -static-libgcc c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh collect2: ld returned 1 exit status :( On 22-Jul-

Re: Can't compile DFL Program

2011-07-21 Thread ray96_28139
I've compiled it many ways. I've added the DFL lib folders to the sc.ini file too. D-IDE compiles it with this command: C:\D\dmd2\windows\bin\dmd.exe "obj\Module1.obj" "C:\dmd\import\dfl" "C:\dmd\lib" "C:\Users\Rayburn\Downloads\dwt-win-importlibs\libs" -L/su:windows -L/exet:nt -of"C:\Users\Raybu

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Andrei Alexandrescu
On 7/21/11 7:27 PM, Simen Kjaeraas wrote: On Fri, 22 Jul 2011 02:06:48 +0200, Jonathan M Davis wrote: On 2011-07-21 16:54, Andrei Alexandrescu wrote: On 7/21/11 6:44 PM, Simen Kjaeraas wrote: > On Thu, 21 Jul 2011 23:40:08 +0200, bearophile > > wrote: >> Nick Sabalausky: >>> Crazy, nutty, wa

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Andrei Alexandrescu
On 7/21/11 7:06 PM, Jonathan M Davis wrote: On 2011-07-21 16:54, Andrei Alexandrescu wrote: On 7/21/11 6:44 PM, Simen Kjaeraas wrote: On Thu, 21 Jul 2011 23:40:08 +0200, bearophile wrote: Nick Sabalausky: Crazy, nutty, wacky idea... float (a, b, c) = 0.0; I'd like some syntax sugar for

Re: What is the stance on partial initializers when declaring

2011-07-21 Thread Simen Kjaeraas
On Fri, 22 Jul 2011 02:50:52 +0200, bearophile wrote: Simen Kjaeraas: int n; string s; unpack!(n,s) = tuple(4, "O HAI"); See my other answer. Beside being long and ugly, it doesn't define the types too. And you can't use it in foreach. Yeah, I can absolutely see that t

Re: What is the stance on partial initializers when declaring

2011-07-21 Thread bearophile
Simen Kjaeraas: > int n; > string s; > > unpack!(n,s) = tuple(4, "O HAI"); See my other answer. Beside being long and ugly, it doesn't define the types too. And you can't use it in foreach. In my opinion a tuple syntax is more important than having built-in associative arrays.

Re: What is the stance on partial initializers when declaring

2011-07-21 Thread bearophile
Simen Kjaeraas: > I believe the syntax that came out on > top in earlier discussions was the upended hamburger bun, or banana > syntax: > > (| float f, string s |) foo = (| 1.2, "Eh, whut?" |); I was the one to suggest this syntax. Andrei told me this is named banana syntax. There are also alte

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Simen Kjaeraas
On Fri, 22 Jul 2011 02:06:48 +0200, Jonathan M Davis wrote: On 2011-07-21 16:54, Andrei Alexandrescu wrote: On 7/21/11 6:44 PM, Simen Kjaeraas wrote: > On Thu, 21 Jul 2011 23:40:08 +0200, bearophile > > wrote: >> Nick Sabalausky: >>> Crazy, nutty, wacky idea... >>> >>> float (a, b, c) = 0.0

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Jonathan M Davis
On 2011-07-21 16:54, Andrei Alexandrescu wrote: > On 7/21/11 6:44 PM, Simen Kjaeraas wrote: > > On Thu, 21 Jul 2011 23:40:08 +0200, bearophile > > > > wrote: > >> Nick Sabalausky: > >>> Crazy, nutty, wacky idea... > >>> > >>> float (a, b, c) = 0.0; > >> > >> I'd like some syntax sugar for tuple

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Simen Kjaeraas
On Fri, 22 Jul 2011 01:54:23 +0200, Andrei Alexandrescu wrote: On 7/21/11 6:44 PM, Simen Kjaeraas wrote: On Thu, 21 Jul 2011 23:40:08 +0200, bearophile wrote: Nick Sabalausky: Crazy, nutty, wacky idea... float (a, b, c) = 0.0; I'd like some syntax sugar for tuples in D (especially fo

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Andrei Alexandrescu
On 7/21/11 6:44 PM, Simen Kjaeraas wrote: On Thu, 21 Jul 2011 23:40:08 +0200, bearophile wrote: Nick Sabalausky: Crazy, nutty, wacky idea... float (a, b, c) = 0.0; I'd like some syntax sugar for tuples in D (especially for their unpacking), that syntax goes against one of the most natural

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Simen Kjaeraas
On Thu, 21 Jul 2011 23:40:08 +0200, bearophile wrote: Nick Sabalausky: Crazy, nutty, wacky idea... float (a, b, c) = 0.0; I'd like some syntax sugar for tuples in D (especially for their unpacking), that syntax goes against one of the most natural ways to define tuples. So it's not a

Re: What the hell is going on with exceptions in DMD 2.054?

2011-07-21 Thread Andrej Mitrovic
Ah ok. Well good luck with a minimal test case, this looks hard to catch. :/

Re: What the hell is going on with exceptions in DMD 2.054?

2011-07-21 Thread Vladimir Panteleev
On Fri, 22 Jul 2011 02:36:50 +0300, Andrej Mitrovic wrote: On 7/22/11, Vladimir Panteleev wrote: It sounds like standard crash dialogs are disabled on your system (or the problem somehow manifests differently for you). But the cause is the same - see the issue I filed. Yes I have them

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Simen Kjaeraas
On Thu, 21 Jul 2011 23:34:59 +0200, Andrej Mitrovic wrote: Well I don't know about special syntaxes. What I might have overheard was that if you do initialize in the declaration, the compiler might request that you specify initializers for all the variables. In other words: float x, y, z =

Re: What the hell is going on with exceptions in DMD 2.054?

2011-07-21 Thread Andrej Mitrovic
On 7/22/11, Vladimir Panteleev wrote: > It sounds like standard crash dialogs are disabled on your system (or the > problem somehow manifests differently for you). But the cause is the same > - see the issue I filed. Yes I have them disabled, but what does that have to do with anything? I'm not c

Re: What the hell is going on with exceptions in DMD 2.054?

2011-07-21 Thread Vladimir Panteleev
On Fri, 22 Jul 2011 00:30:07 +0300, Andrej Mitrovic wrote: This is one of the worst heisenbug-related DMD releases ever. This is the same problem we've discussed in your previous thread. Please see the links I posted there for more information. It sounds like standard crash dialogs are

Re: Windows GDC and libgcc_s_sjlj-1.dll

2011-07-21 Thread Daniel Green
On 7/21/2011 6:52 PM, Daniel Green wrote: On 7/21/2011 6:44 AM, Kagamin wrote: Andre Tampubolon Wrote: I just tried GDC on Windows, and I found out that the executables created are linked into libgcc_s_sjlj-1.dll. Will it be possible to get rid of the dependency on this DLL? Yes, there's a s

Re: Windows GDC and libgcc_s_sjlj-1.dll

2011-07-21 Thread Daniel Green
On 7/21/2011 6:44 AM, Kagamin wrote: Andre Tampubolon Wrote: I just tried GDC on Windows, and I found out that the executables created are linked into libgcc_s_sjlj-1.dll. Will it be possible to get rid of the dependency on this DLL? Yes, there's a static version of libgcc, you should play wi

Re: _popen alternative in D?

2011-07-21 Thread Andrej Mitrovic
On 7/22/11, Vladimir Panteleev wrote: > Would it be possible to fix the ridiculously low open FILE limit on > Windows as well? I've run into this issue as well. How low is it exactly?

Re: _popen alternative in D?

2011-07-21 Thread Vladimir Panteleev
On Thu, 21 Jul 2011 18:47:03 +0300, Steven Schveighoffer wrote: On Thu, 21 Jul 2011 09:33:34 -0400, Vladimir Panteleev wrote: On Thu, 21 Jul 2011 16:19:12 +0300, Maraco wrote: Hello. I have a specific problem. I need to redirect console output from a console program to dfl textbox

Re: Can't compile DFL Program

2011-07-21 Thread Trass3r
How do you compile it?

Can't compile DFL Program

2011-07-21 Thread ray96_28139
Hi, I have been trying to compile my first D program for days now and I cannot get it to compile. My source code is from Entice, as follows: import dfl.all; class MyForm: dfl.form.Form { // Do not modify or move this block of variables. //~Entice Designer variables begin here.

Re: What the hell is going on with exceptions in DMD 2.054?

2011-07-21 Thread Andrej Mitrovic
Minimized test case: https://github.com/AndrejMitrovic/temporary/blob/master/exception_bug/cpp.rar If you uncomment the exception handler, then the exception is caught. Otherwise nothing is shown to stdout.

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread bearophile
Nick Sabalausky: > Crazy, nutty, wacky idea... > > float (a, b, c) = 0.0; I'd like some syntax sugar for tuples in D (especially for their unpacking), that syntax goes against one of the most natural ways to define tuples. So it's not a good idea. Bye, bearophile

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Andrej Mitrovic
Well I don't know about special syntaxes. What I might have overheard was that if you do initialize in the declaration, the compiler might request that you specify initializers for all the variables. In other words: float x, y, z = 0.0; // error float x = 0.0, y = 0.0, z = 0.0; // ok But I don'

What the hell is going on with exceptions in DMD 2.054?

2011-07-21 Thread Andrej Mitrovic
This is one of the worst heisenbug-related DMD releases ever. I have two completely equivalent directories (minus the name): C:\Documents and Settings\Andrej\Desktop\bug D:\dev\projects\DNeonHelium\Samples\cpp They have a collection of subfolders and inside those subfolders are Readme files and v

Re: What is the stance on partial initializers when declaring multiplevariables of the same type?

2011-07-21 Thread Nick Sabalausky
"Andrej Mitrovic" wrote in message news:mailman.1826.1311231133.14074.digitalmar...@puremagic.com... >I ran into this simple C declaration: > > float float_x, float_y, float_xb, float_yb; > > These need to be explicitly initialized in D, otherwise you either get > crashes or you won't get anythin

Re: What is the stance on partial initializers when declaring multiple variables of the same type?

2011-07-21 Thread Andrej Mitrovic
On 7/21/11, Jacob Carlborg wrote: > How about you create a new type, that can be implicitly converted to > float and is initialized to 0.0. Ha, never thought about that! When I think about it, most of the time I want my floats to be 0-initialized.

Re: Building gtkD

2011-07-21 Thread Trass3r
It was mainly a comment on what happened to me when I read the instructions. It really shouldn't be necessary to edit those version()'s. They are still in the svn version and I compiled with vanilla 2.054 and it worked fine. So I guess it is caused by your dmd package somehow. Give me a br

Re: Building gtkD

2011-07-21 Thread Steve Teale
It was mainly a comment on what happened to me when I read the instructions. I know from archive discussions that others have had similar problems. Give me a break - I was trying to help!

Re: _popen alternative in D?

2011-07-21 Thread Steven Schveighoffer
On Thu, 21 Jul 2011 09:33:34 -0400, Vladimir Panteleev wrote: On Thu, 21 Jul 2011 16:19:12 +0300, Maraco wrote: Hello. I have a specific problem. I need to redirect console output from a console program to dfl textbox but i cant find function to do it. std.process.system only shows exit

Re: std.path review: update

2011-07-21 Thread torhu
On 17.07.2011 23:27, Lars T. Kyllingstad wrote: - Should it be specified/documented whether a function returns "" or null? Specifically, is it important that extension("foo") is null extension("foo.") !is null&& extension("foo.") == "" I guess you've already thought about this, but

Re: _popen alternative in D?

2011-07-21 Thread Maraco
Thanks. I will try.

Re: _popen alternative in D?

2011-07-21 Thread Vladimir Panteleev
On Thu, 21 Jul 2011 16:38:09 +0300, Maraco wrote: Ok so i need to wait until process will exit and read output from file that process wrote, am i right? Here's how I do it (warning: not very good D1 code): https://github.com/CyberShadow/Team15/blob/master/Utils.d#L1024 -- Best regards, V

Re: _popen alternative in D?

2011-07-21 Thread Maraco
Ok so i need to wait until process will exit and read output from file that process wrote, am i right?

Re: _popen alternative in D?

2011-07-21 Thread Vladimir Panteleev
On Thu, 21 Jul 2011 16:19:12 +0300, Maraco wrote: Hello. I have a specific problem. I need to redirect console output from a console program to dfl textbox but i cant find function to do it. std.process.system only shows exiting code. I think std.process.shell should do it but it is crashing

_popen alternative in D?

2011-07-21 Thread Maraco
Hello. I have a specific problem. I need to redirect console output from a console program to dfl textbox but i cant find function to do it. std.process.system only shows exiting code. I think std.process.shell should do it but it is crashing whole program. If You don't know what im asking for th

Re: Time for Phobos CTFE-ability unittests...right? RIGHT?

2011-07-21 Thread Don
Jonathan M Davis wrote: On 2011-07-12 17:16, Nick Sabalausky wrote: "Jonathan M Davis" wrote in message news:mailman.1576.1310513383.14074.digitalmar...@puremagic.com... On 2011-07-12 16:17, Andrej Mitrovic wrote: I don't understand what strip() could be doing to break CTFE anyway? Don has

Re: RDMD is broken on Windows7

2011-07-21 Thread Kagamin
simendsjo Wrote: > > May be, it's an exception while getting symbols? Try to disable strack > > trace generation. > > Not sure I understand what you mean.. Isn't stack trace enabled with -g? It's enabled. Try to disable it at runtime: set stack trace handler to null. The more features are enab

Re: Windows GDC and libgcc_s_sjlj-1.dll

2011-07-21 Thread Kagamin
Andre Tampubolon Wrote: > I just tried GDC on Windows, and I found out that the executables > created are linked into libgcc_s_sjlj-1.dll. Will it be possible to get > rid of the dependency on this DLL? Yes, there's a static version of libgcc, you should play with ld a bit.

Re: Building gtkD

2011-07-21 Thread Trass3r
I really don't know what you're doing. Running 'make -f GNUmakefile -j' works flawlessly with dmd 2.054 and svn gtkD.

Re: Building gtkD

2011-07-21 Thread Trass3r
Too bad the makefile is for linux and I have to stick with dsss which is practically abondoned. See the similar thread in D.learn on how to compile your program with rdmd. I still don't get why dmd -lib -O -release -inline -I.. -I../../srcgl -I../../srcsv -I../../srcgda gtkD.d completely fails

Re: What is the stance on partial initializers when declaring multiple variables of the same type?

2011-07-21 Thread Jacob Carlborg
On 2011-07-21 08:52, Andrej Mitrovic wrote: I ran into this simple C declaration: float float_x, float_y, float_xb, float_yb; These need to be explicitly initialized in D, otherwise you either get crashes or you won't get anything but a blank screen (with regards to rendering with OpenGL). Ho

Re: std.path review: update

2011-07-21 Thread Lars T. Kyllingstad
On Thu, 21 Jul 2011 03:36:37 -0400, Jussi Jumppanen wrote: > Lars T. Kyllingstad Wrote: > >> On Wed, 20 Jul 2011 14:16:04 -0400, Steven Schveighoffer wrote: >> >> Any .NET programmers out there? Can you please tell me what the >> following functions return? >> >> System.IO.Path.GetDirectoryNa

Re: std.path review: update

2011-07-21 Thread Lars T. Kyllingstad
On Thu, 21 Jul 2011 09:09:52 +0200, Rainer Schuetze wrote: > On 20.07.2011 20:16, Steven Schveighoffer wrote: >> >> ls //root lists the contents of /root. I'd guess that opening //root >> with open() would simply open /root. Given that context, they should >> not be considered to be a server path

Re: std.path review: update

2011-07-21 Thread Lars T. Kyllingstad
On Wed, 20 Jul 2011 22:20:16 +0100, Alix Pexton wrote: > On 20/07/2011 20:57, Lars T. Kyllingstad wrote: >> >> Does anyone know whether Windows' case insensitivity is limited to >> ASCII? If not, is the filesystem Unicode-aware, or does it uses some >> locale specific codepage to compare file name

Re: GitHub or dsource?

2011-07-21 Thread Nick Sabalausky
"David Nadlinger" wrote in message news:j068tj$4fv$1...@digitalmars.com... > On 7/7/11 8:19 PM, Nick Sabalausky wrote: >> [.]But DSource is better for >> forums and issue tracking. So I would just use both - code hosting at >> github >> and forums/issue-tracking at dsource. > > I doubt that DSou

Re: std.path review: update

2011-07-21 Thread Jussi Jumppanen
Lars T. Kyllingstad Wrote: > On Wed, 20 Jul 2011 14:16:04 -0400, Steven Schveighoffer wrote: > > Any .NET programmers out there? Can you please tell me what the > following functions return? > > System.IO.Path.GetDirectoryName("\\foo\bar") > System.IO.Path.GetPathRoot("\\foo\bar\baz") This

Re: Building gtkD

2011-07-21 Thread maarten van damme
Great, I'm going to try it on linux mint. Too bad the makefile is for linux and I have to stick with dsss which is practically abondoned. I still don't get why dmd -lib -O -release -inline -I.. -I../../srcgl -I../../srcsv -I../../srcgda gtkD.d completely fails, it spits out a 34 kb executable

Re: std.path review: update

2011-07-21 Thread Rainer Schuetze
On 20.07.2011 19:36, Lars T. Kyllingstad wrote: On Mon, 18 Jul 2011 14:51:06 -0400, Steven Schveighoffer wrote: It's definitely something to think about. At the very least, I think the default file system case sensitivity should be mapped to a certain function. It doesn't hurt to expose the

Re: std.path review: update

2011-07-21 Thread Rainer Schuetze
On 20.07.2011 20:16, Steven Schveighoffer wrote: ls //root lists the contents of /root. I'd guess that opening //root with open() would simply open /root. Given that context, they should not be considered to be a server path IMO. If that's true for the bare open() without going through possi

Re: std.path review: update

2011-07-21 Thread Rainer Schuetze
Does anyone know whether Windows' case insensitivity is limited to ASCII? If not, is the filesystem Unicode-aware, or does it uses some locale specific codepage to compare file names? I just tried a few examples: Using umlauts works as expected, i.e. upper or lower case characters are treated