Re: Dazz new description for D

2015-08-31 Thread Anthony Goins via Digitalmars-d
On Monday, 31 August 2015 at 07:38:18 UTC, Enamex wrote: Some posters on reddit remarked that D's sales pitch on the website is unnecessarily long and unindicative. I'm only making a suggestion; suggest others or comment on this one: D is a multiparadigm systems programming language with

Re: Linux Dynamic Loading of shared libraries

2014-03-10 Thread Anthony Goins
On Monday, 10 March 2014 at 06:38:35 UTC, Steve Teale wrote: On Sunday, 9 March 2014 at 14:09:28 UTC, Tolga Cakiroglu wrote: For this, you create an Interface that matches to the method declaration of your class. But notice that instead of defining methods, you will define attributes those

Re: Linux Dynamic Loading of shared libraries

2014-03-09 Thread Anthony Goins
On Sunday, 9 March 2014 at 12:07:22 UTC, Steve Teale wrote: Martin Nowak's Gihub druntime Page has module main; import core.runtime, core.thread; void main() { auto lib = Runtime.loadLibrary(./liba.so); auto thr = new Thread({ auto lib = Runtime.loadLibrary(./liba.so);

Re: Start of dmd 2.064 beta program

2013-10-16 Thread Anthony Goins
On Wednesday, 16 October 2013 at 13:34:04 UTC, Andrej Mitrovic wrote: On 10/16/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: What are you protesting against? Walter. The last change log was awesome. I vote to get rid of Walter. :)

Re: Problems importing core.sys.linux.epoll

2013-09-09 Thread Anthony Goins
On Monday, 9 September 2013 at 11:14:47 UTC, Mike Parker wrote: I'm experimenting with some Linux stuff right now and am currently working on something using epoll. But I've run into an issue where dmd just doesn't see anything in core.sys.linux.epoll. As a workaround, I've implemented my own

Re: ctRegex! vs regex error

2013-08-08 Thread Anthony Goins
On Wednesday, 7 August 2013 at 22:36:39 UTC, Milvakili wrote: Hi, I can compile void main(){ auto myRegx = regex(`(?!test)`); } however can not compile this one void main(){ auto myRegx = ctRegex!(`(?!test)`); } code sample:http://dpaste.dzfl.pl/d38926f4 and get the following error: ...

Re: I've started blog a little more about D.

2013-07-21 Thread Anthony Goins
On Saturday, 20 July 2013 at 21:19:03 UTC, Gary Willoughby wrote: I'm starting to blog a little more and in particular i've started writing more about D. I'm using it a great deal at work now and all new stuff is to be written in it. I'm loving every minute of this and really want to sing its

Re: interacting with a process with redirected stdin/stdout/stderr

2013-07-16 Thread Anthony Goins
On Monday, 15 July 2013 at 06:46:52 UTC, timotheecour wrote: On Monday, 15 July 2013 at 03:49:10 UTC, Timothee Cour wrote: I'm trying to interact with a process using std.process and redirected stdin/stdout/stderr. What would be the recommended way? For example: auto

Re: Handling different types gracefully

2013-07-01 Thread Anthony Goins
On Monday, 1 July 2013 at 12:03:25 UTC, Roderick Gibson wrote: I'm asking because I'm doing some game development in D and I've come upon the entity component architecture, and it looks like a good way to handle the complexity and interdependency that games seem to have. The components wind

Re: Windows parameter

2013-06-30 Thread Anthony Goins
On Sunday, 30 June 2013 at 19:03:13 UTC, shuji wrote: this code is in a .cpp file //funcs.lib //windows includes... HWND hwnd; int setHWND(HWND extHwnd){ hwnd = extHwnd; return 0; } So im trying to import from D like this. I dont think I can implement this line in C++ extern

Cryptic Error message with scope(failure) and AA

2013-06-29 Thread Anthony Goins
Is this known? I've heard there are many problems with associative arrays. dmd 2.063 --- module scopefailtest; int[char] AAarray; void main(string[] args) { AAarray = ['a':1, 'b':2, 'c':3]; foreach(aa; AAarray) { scope(failure)continue; aa = 32; } } ---

Re: Cryptic Error message with scope(failure) and AA

2013-06-29 Thread Anthony Goins
Seems like there are several levels of wrong actually: What do you expect scope(failure)continue to do exactly? I was reading an array of files (Document[string]). Stuck the scope(failure)continue in late at night apparently to skip reading files that no longer exist. Forgot about it.

Re: indexing a tuple containing a struct strange result

2013-06-23 Thread Anthony Goins
On Monday, 24 June 2013 at 01:22:12 UTC, cal wrote: What is going on here? import std.stdio, std.typecons; struct S { int x; Tuple!(S) foo() { return tuple(this); } } void main() { S s; s.x = 8; writeln((s.foo())); //output: Tuple!(S)(S(8)) writeln((s.foo())[0]);

Re: DConf 2013 Day 3 Talk 2: Code Analysis for D with AnalyzeD by Stefan Rohe

2013-06-12 Thread Anthony Goins
On Wednesday, 12 June 2013 at 12:50:39 UTC, Andrei Alexandrescu wrote: Reddit: http://www.reddit.com/r/programming/comments/1g6x9g/dconf_2013_code_analysis_for_d_with_analyzed/ Hackernews: https://news.ycombinator.com/item?id=5867764 Twitter:

Re: Don's talk's video to be online soon

2013-06-10 Thread Anthony Goins
On Monday, 10 June 2013 at 18:59:22 UTC, Andrei Alexandrescu wrote: I'm experiencing trouble uploading the video of Don's talk, please bear with me. It will be available either later today or tomorrow morning. Sorry, Andrei Will there be video for Andrew Edwards?

Re: about with statement

2013-06-10 Thread Anthony Goins
On Sunday, 9 June 2013 at 10:11:25 UTC, khurshid wrote: D language have like Pascal/Delphi with statement, which very useful for writing readable code. http://dlang.org/statement.html#WithStatement Maybe I'm wrong, but, I never saw where using this statement in phobos source codes, what

Re: reddit discussion on replacing Python in 0install

2013-06-10 Thread Anthony Goins
On Monday, 10 June 2013 at 20:51:16 UTC, Jesse Phillips wrote: On Monday, 10 June 2013 at 18:25:05 UTC, Graham Fawcett wrote: Hi folks, There's an interesting discussion going on at Reddit about choosing a replacement language for 0install:

-profile

2013-06-07 Thread Anthony Goins
Compiling with -profile and without -release Gives the following error (not exactly but the best I can recall) balancedParens is not nothrow safe pure With -release and -profile all is fine. Builds fine without -profile. Simple question is why?

Re: -profile

2013-06-07 Thread Anthony Goins
On Friday, 7 June 2013 at 21:39:26 UTC, bearophile wrote: Anthony Goins: Simple question is why? I am compiling this code with -profile, and I don't see errors: import std.string: balancedParens; void main() { assert(balancedParens([[]], '[', ']')); } Bye, bearophile okay found

Re: -profile

2013-06-07 Thread Anthony Goins
On Friday, 7 June 2013 at 23:42:58 UTC, Anthony Goins wrote: On Friday, 7 June 2013 at 21:39:26 UTC, bearophile wrote: Anthony Goins: Simple question is why? I am compiling this code with -profile, and I don't see errors: import std.string: balancedParens; void main() { assert

Re: -profile

2013-06-07 Thread Anthony Goins
On Friday, 7 June 2013 at 23:57:37 UTC, bearophile wrote: Anthony Goins: Is this even worth a bug report? Yes, it's worth a bug report in Bugzilla, it's a (small) Phobos Bug. I confirmed its presence. Bye, bearophile Thank you for all your help. Not just here but throughout the forums

Re: Conditional compilation

2013-06-07 Thread Anthony Goins
On Friday, 7 June 2013 at 12:20:23 UTC, finalpatch wrote: string mixins and template mixins don't work either. On Friday, 7 June 2013 at 12:14:45 UTC, finalpatch wrote: Hi folks, I need to apply different calling conventions to the same interfaces when compiling for different platform. It's

non-standard json output

2013-06-04 Thread Anthony Goins
Is this a bug? file : /home/anthony/projects/dcomposer/src/printui.d, A line from DMD 2.063 json output. file : \/usr\/include\/d\/gsv\/SourceBuffer.d, A line from an older DMD version. Forward slashes escaped according to json standard. Hesitant to file a bug report because by the time I

Re: non-standard json output

2013-06-04 Thread Anthony Goins
On Tuesday, 4 June 2013 at 21:35:27 UTC, Brian Schott wrote: On Tuesday, 4 June 2013 at 20:59:55 UTC, Anthony Goins wrote: Is this a bug? file : /home/anthony/projects/dcomposer/src/printui.d, A line from DMD 2.063 json output. file : \/usr\/include\/d\/gsv\/SourceBuffer.d, A line from

Re: non-standard json output

2013-06-04 Thread Anthony Goins
On Tuesday, 4 June 2013 at 21:35:27 UTC, Brian Schott wrote: On Tuesday, 4 June 2013 at 20:59:55 UTC, Anthony Goins wrote: Is this a bug? file : /home/anthony/projects/dcomposer/src/printui.d, A line from DMD 2.063 json output. file : \/usr\/include\/d\/gsv\/SourceBuffer.d, A line from

Re: non-standard json output

2013-06-04 Thread Anthony Goins
On Tuesday, 4 June 2013 at 21:55:38 UTC, Brian Schott wrote: The char rule in the json standard can be matched by anything that isn't a control character, a double quote, or a backslash. I'm pretty sure you're not arguing that the forward slash is a double quote or that the forward slash is a

Re: DMD 2.063 produces broken binaries

2013-06-04 Thread Anthony Goins
On Tuesday, 4 June 2013 at 18:03:53 UTC, Jerry wrote: Hi folks, I've downloaded the current dmd 2.063 zip and tried it out. This is Ubuntu 12.10 x86_64. Every program I compile segfaults when I try to run it. As a simple example: jlquinn@wyvern:~/re/test$ cat junk.d import std.stdio;

Re: how to use shared keyword in 2.063 version?

2013-05-31 Thread Anthony Goins
On Friday, 31 May 2013 at 21:01:49 UTC, Andrey wrote: Hello! I'm trying to use following code: == //... class A { private { int m_someVar = 10; } public { this() {

Re: Segfault on simple program?

2013-05-31 Thread Anthony Goins
On Friday, 31 May 2013 at 17:14:46 UTC, Shriramana Sharma wrote: import std.stdio ; void foo ( int[] array ) { foreach ( i ; array ) { writeln ( i ) ; } } void main () { foo ( [ 1, 2, 3 ] ) ; } On both DMD 2.062 and 2.063 this compiles OK but causes a segfault. I'm running

Re: Failed to sort range

2013-05-28 Thread Anthony Goins
On Tuesday, 28 May 2013 at 12:57:12 UTC, Sergei Nosov wrote: Hi! I'm trying to implement an array, which uses malloc to allocate memory. Also, I want to implement a random access range interface for it. That went pretty well, until I tried to sort it. Sorting function asserted Failed to