Re: Explicitly Freeing Memory

2014-11-18 Thread Vladimir Panteleev via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 03:47:04 UTC, Maxime Chevalier-Boisvert wrote: I posted a thread the other day explaining that I was running into a memory leak issue which is very hard to debug. There seems to be a false pointer somewhere, and I have no way of knowing where that is or which

Re: Russian translation of the range term?

2014-11-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 11 November 2014 at 11:50:18 UTC, Ivan Kazmenko wrote: Is there an official translation already? In TDPL, the (very few) occurrences of range are translated as диапазон (Cyrillic for diapason), how official is that? In Russian, the term diapason in computerspeak is used to refer

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 17 November 2014 at 16:40:18 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 17 Nov 2014 15:41:25 + Andre via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: ~this() { foreach(cp; this._columns) {

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 17 November 2014 at 22:19:04 UTC, Vladimir Panteleev wrote: On Monday, 17 November 2014 at 16:40:18 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 17 Nov 2014 15:41:25 + Andre via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: ~this() {

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 17 November 2014 at 22:40:36 UTC, Steven Schveighoffer wrote: On 11/17/14 5:19 PM, Vladimir Panteleev wrote: On Monday, 17 November 2014 at 16:40:18 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 17 Nov 2014 15:41:25 + Andre via Digitalmars-d-learn

Re: Debugging a Memory Leak

2014-11-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 17 November 2014 at 23:12:10 UTC, Maxime Chevalier-Boisvert wrote: Help or advice on solving this problem is welcome. The D GC has some debugging code which might be a little helpful (check the commented-out debug = X lines in druntime/src/gc/gc.d). Specifically, debug=LOGGING

Re: win64 - win32.oaidl.VARIANT - error LNK2019

2014-10-31 Thread Vladimir Panteleev via Digitalmars-d-learn
On Friday, 31 October 2014 at 15:56:54 UTC, deed wrote: // bindings from https://github.com/CS-svnmirror/dsource-bindings-win32/blob/308739a417eaaba85a5d3ce7741fd43d3042efe0/oaidl.d --- import win32.oaidl; // The following gives linker error: error LNK2019: unresolved external // symbol

Re: dsource and WinAPI

2014-10-14 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 14 October 2014 at 13:06:06 UTC, Steven Schveighoffer wrote: dsource is no longer actively maintained. I don't think anyone knows how to contact the admin. I've contacted Brad on a few occasions. Looks like they are still using dsource for that project, latest update is 9/7/14.

Re: line numbers in linux stack traces?

2014-10-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 5 October 2014 at 09:10:06 UTC, Nick Sabalausky wrote: I know this keeps getting asked every year or so, but I couldn't find recent info. Are line numbers in linux stack traces supposed to be working at this point? Not the ones that the program itself prints on an unhandled

Re: Can I get caller name?

2014-09-26 Thread Vladimir Panteleev via Digitalmars-d-learn
On Friday, 26 September 2014 at 05:59:33 UTC, AsmMan wrote: for debugging purposes, I need to get the caller name. Is it possible? if so, how do I do this? void foo() { baa(); } void baa() { wrilten(caller_name()); // foo } I know I could create an extra parameter and pass the current

Re: put string[] into a appender without loop?

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 21 September 2014 at 23:48:59 UTC, AsmMan wrote: On Sunday, 21 September 2014 at 23:41:58 UTC, AsmMan wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I

Re: put string[] into a appender without loop?

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 22 September 2014 at 00:18:03 UTC, AsmMan wrote: this give undefined identifier: 'put' error. (std.array is already included, buffer.put(string) doesn't give same error) You need to import std.range. The copy of an array doesn't happen often as string but do suggest to I want

Re: Unicode arithmetic at run-time

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 21 September 2014 at 03:13:19 UTC, Adam D. Ruppe wrote: writefln(%c, cast(dchar)('\U0001F0A1'+1)); A bit less ugly: writefln(%c, dchar('\U0001F0A1'+1));

Re: Can't get Visual D to come up. No warnings, no errors, no nothing

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 22 September 2014 at 03:21:44 UTC, WhatMeWorry wrote: Anybody installed Visual D recently? As per the install instructions, I downloaded the Visual Studio isolated Shell 2013 and its integrated package. Everything went smoothly. I then downloaded Visual D and installed it with

Re: Fibers

2014-09-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Wednesday, 17 September 2014 at 10:00:49 UTC, Andrew Edwards wrote: Basically what I'm trying to do is to transact on every file in give directory at the same time exact time. In this exam, I'm removing the file/directory but that's just a test to see if I could get it to work. Perhaps

Re: Link problem in std.regex with DMD git master

2014-09-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Wednesday, 17 September 2014 at 23:46:13 UTC, Nordlöw wrote: Since a couple of days my DMD git master has start to error as below when I compiled programs that import std.regex. What's wrong? How are you building Phobos? std.regex was recently split up into a package. Make sure your

Re: tried to use wstring in my terminal and see what happened.

2014-08-30 Thread Vladimir Panteleev via Digitalmars-d-learn
On Friday, 29 August 2014 at 22:01:58 UTC, Cassio Butrico wrote: Anyone help me... I am using the version for the windows dmd v 2.066 to last I believe. tried to use wstring in my terminal and see what happened. name = cast(wstring)chomp(readln()); This line is incorrect. You are

Re: I can ask questions about dmd on windows here in this forum?

2014-08-30 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 31 August 2014 at 03:16:38 UTC, Cassio Butrico wrote: I'm new to this language, and I wonder if I will have some support simple questions. Thank you for your attention. Yes.

Re: whats happening to my binary file size?

2014-08-26 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 26 August 2014 at 23:36:44 UTC, Israel wrote: I wasnt paying any attention to the file size of my binaries when i started using D. My first program is simple and compiles at 486kb, which honestly, is kind of absurd but anyways, after i start adding other imports it ran all the

Re: 'idiomatic' porting of c and or c++ code that does NULL checking

2014-08-26 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 25 August 2014 at 03:19:09 UTC, Mike Parker wrote: I use Exception for recoverable errors and Error for those that aren't. Sorry, you're right, that description of Exception/Error is correct. But I don't think that SDL initialization is a non-recoverable error. The program might

Re: Why no multiple-dispatch?

2014-08-24 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 24 August 2014 at 23:42:51 UTC, Aerolite wrote: So what seems to be the situation here? Hi Aerolite, I've never used multiple dispatch in any language, but from looking at the C# syntax here[1]: ReactSpecialization(me as dynamic, other as dynamic); You should be able to

Re: Why no multiple-dispatch?

2014-08-24 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 25 August 2014 at 00:20:26 UTC, Vladimir Panteleev wrote: dynamic!ReactSpecialization(me, other); Here's a very basic implementation: http://dpaste.dzfl.pl/5150ca9c13f4 Idan Arye is also working on functional pattern matching for object references:

Re: 'idiomatic' porting of c and or c++ code that does NULL checking

2014-08-24 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 25 August 2014 at 02:17:47 UTC, Mike Parker wrote: // Put this somewhere you can import it into any module calling Small modification for even terser error handling: T sdlEnforce(T)(T result, string message = null) { if (!result) throw new SdlException(SDL error: ~

Re: Is this RDMD bug ?

2014-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 23 August 2014 at 16:28:46 UTC, novice2 wrote: I have 2 reduced files, wich i can't compile with new (DMD 2.066) rdmd.exe under Windows 7 32-bit. Command: rdmd --force --build-only aaa.d Message Error 42: Symbol Undefined _D3etc3bbb3fooFZi But command: dmd aaa.d etc\bbb.d Compile

Re: Is this RDMD bug ?

2014-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 23 August 2014 at 17:37:39 UTC, sigod wrote: On Saturday, 23 August 2014 at 17:32:15 UTC, Vladimir Panteleev wrote: No, it is not an rdmd bug. etc is a standard D package name reserved for Phobos, the standard library. It is the same for std and core. Please, point us directly

Re: -inline switch changes code behaviour

2014-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 23 August 2014 at 17:44:41 UTC, francesco cattoglio wrote: any suggestion on how to debug this? If you can write a script which can compare the behavior of two builds of your program to return 0 if they differ or 1 if they are identical, you could plug it into DustMite. Write a

Re: Is this RDMD bug ?

2014-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 23 August 2014 at 18:23:25 UTC, sigod wrote: Actually, I never got to use this names for first package name. (I only used `something.etc` and `something.core`.) So, I didn't thought about this. `something.etc` and `something.core` should work fine. Only the three top-level

Re: Is this RDMD bug ?

2014-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 23 August 2014 at 18:23:25 UTC, sigod wrote: Isn't it better to document such things? Yes. Please create a pull request.

Re: Is this RDMD bug ?

2014-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 23 August 2014 at 18:12:44 UTC, novice2 wrote: On Saturday, 23 August 2014 at 17:32:15 UTC, Vladimir Panteleev wrote: etc is a standard D package name reserved for Phobos, the Thanks for explanation. I not be able to undertsand the cause - weird error message. Now i can easy fix

Re: Is this RDMD bug ?

2014-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 23 August 2014 at 18:41:58 UTC, Marc Schütz wrote: On Saturday, 23 August 2014 at 17:41:38 UTC, Dicebot wrote: On Saturday, 23 August 2014 at 17:37:39 UTC, sigod wrote: On Saturday, 23 August 2014 at 17:32:15 UTC, Vladimir Panteleev wrote: No, it is not an rdmd bug. etc is a

Re: Is this RDMD bug ?

2014-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 23 August 2014 at 18:55:08 UTC, Marc Schütz wrote: But imported modules are the important case. If I have an important bugfix in a module, and don't want to wait for the next release, what am I supposed to do? Rebuild Phobos. If rdmd were to compile your module, linking would

Re: request assistance resolving curl related linker error

2014-08-19 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 19 August 2014 at 03:56:38 UTC, ketmar via Digitalmars-d-learn wrote: On Tue, 19 Aug 2014 03:37:23 + Vladimir Panteleev via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: And Windows. Since, apparently, pragma(lib) is only supported by COFF and OMF. nope, GNU

Re: request assistance resolving curl related linker error

2014-08-18 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 19 August 2014 at 02:24:48 UTC, ketmar via Digitalmars-d-learn wrote: On Tue, 19 Aug 2014 09:56:30 +0900 Andrew Edwards via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Add '-L-lcurl' to your dmd invocation to do this. Okay, got it. Thank you much. or you can add

Re: Appender is ... slow

2014-08-15 Thread Vladimir Panteleev via Digitalmars-d-learn
On Thursday, 14 August 2014 at 18:31:15 UTC, Dicebot wrote: I don't know much about Phobos appender implementation details but the key thing with reusable buffer is avoid freeing them. AFAIR Appender.clear frees the allocated memory but `Appender.length = 0` does not, making it possible to

Re: building a D app with multiple source files

2014-08-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 5 August 2014 at 07:27:18 UTC, nikki wrote: Hello, I am completely new to D and have been paying around with the tutorials, some docs and little test programs. Now I want to try and use https://github.com/elvisxzhou/artemisd for little gamedev experiment but I am running into build

Re: spawnProcess command-line arguments help

2014-08-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 3 August 2014 at 23:48:09 UTC, Martin wrote: When I use the spawnProcess function in std.process, the command line arguments that I provide to the function seem to get quoted. Is there a way to tell the spawnProcess function that I want the command line arguments to be non-quoted?

Re: building a D app with multiple source files

2014-08-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 5 August 2014 at 07:29:46 UTC, nikki wrote: edit : btw, I understand how to build an app that conscists out of a few source files, I'd just do 'dmd file1.d file2.d' I amtalking here about the situation where that's unpractical because of the amount and folder structure. With

Re: spawnProcess command-line arguments help

2014-08-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 4 August 2014 at 17:02:27 UTC, Peter Alexander wrote: On Sunday, 3 August 2014 at 23:48:09 UTC, Martin wrote: When I use the spawnProcess function in std.process, the command line arguments that I provide to the function seem to get quoted. I can't reproduce this on OS X with

Re: building a D app with multiple source files

2014-08-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 5 August 2014 at 07:43:56 UTC, nikki wrote: What issues have you had with rdmd? The library seems to have a package.json file, so you could also try dub: http://code.dlang.org/download nikki@crunchbang:~/projects/d/artemisd$ rdmd example/source/app.d

Re: building a D app with multiple source files

2014-08-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 5 August 2014 at 07:46:05 UTC, Vladimir Panteleev wrote: On Tuesday, 5 August 2014 at 07:43:56 UTC, nikki wrote: What issues have you had with rdmd? The library seems to have a package.json file, so you could also try dub: http://code.dlang.org/download

Re: building a D app with multiple source files

2014-08-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 5 August 2014 at 07:51:53 UTC, nikki wrote: Correction: rdmd -Isource example/source/app.d that one worked, woohoo thanks. what did the -Isource do? it's not in the 'rdmd --help' You'll find it in dmd's --help. It adds the source directory to the search path, the list of

Re: Building D on windows

2014-07-02 Thread Vladimir Panteleev via Digitalmars-d-learn
On Wednesday, 2 July 2014 at 16:06:08 UTC, Kashyap wrote: I got the following error - C:\Users\labuser\dlang\druntimedir ..\dmd\src\vcbuild\Win32\Release\dmd_msc.exe C:\Users\labuser\dlang\druntimeshell script.sh shell 1.01 make -f posix.mak DMD=../dmd/src/vcbuild/Win32/Release/dmd_msc.exe

Re: Why is the Win32 boilerplate the way it is?

2014-07-02 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 29 June 2014 at 15:06:25 UTC, Jeremy Sorensen wrote: The only question I have is what happens when you use SUBSYSTEM:WINDOWS:4.0 (Which I understand means XP or higher) and the program runs on something older? Windows XP is version 5.1. 4.0 was Windows NT 4 (which I believe was the

Re: Recommendation on option parsing

2014-05-13 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 13 May 2014 at 03:40:57 UTC, Chris Piker wrote: I like your enthusiasm. If you have any modules that don't require me to rebuild libphobos, I'll be happy to give them a whirl. Thank's for responding to my inquiry. Try Digger! https://github.com/CyberShadow/Digger Run: digger

<    1   2   3