Easy User code injection

2016-04-03 Thread Patience via Digitalmars-d
One problem with many applications is they are static once compiled in the following sense: There are apps that have certain behaviors that may be incomplete are undesirable. Usually it could be that the designers used a hard coded value for something when it would be better to have made

Re: We gunna be rich

2016-04-02 Thread Patience via Digitalmars-d
On Saturday, 2 April 2016 at 15:43:53 UTC, Andrei Alexandrescu wrote: Hello all, I've created an Amazon Affiliates link for the D Language Foundation (dlang-20). Subsequently I've changed https://wiki.dlang.org/Books to use it. Please follow up with changing dlang.org to also use the links,

Re: Parameterized Keywords

2016-03-07 Thread Patience via Digitalmars-d
On Tuesday, 8 March 2016 at 00:47:10 UTC, Mike Parker wrote: On Monday, 7 March 2016 at 20:54:22 UTC, Patience wrote: On Monday, 7 March 2016 at 15:09:48 UTC, Lass Safin wrote: On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: int[size] <- creates an integer of size bits. You declare

Re: Parameterized Keywords

2016-03-07 Thread Patience via Digitalmars-d
On Monday, 7 March 2016 at 16:29:27 UTC, NX wrote: On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: Just curious if anyone can see the use for them? I believe 'new' keyword can take advantage of this quite good. For example you can pass memory usage strategy like so: MyClass mc =

Re: Parameterized Keywords

2016-03-07 Thread Patience via Digitalmars-d
On Monday, 7 March 2016 at 15:09:48 UTC, Lass Safin wrote: On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: int[size] <- creates an integer of size bits. You declare arrays of integers with int[size], you know that, right? No, not right. Think again. Get your mind out the gutter.

Re: Uniform Function Call Syntax?

2016-03-06 Thread Patience via Digitalmars-d
On Monday, 7 March 2016 at 00:19:07 UTC, Xinok wrote: On Sunday, 6 March 2016 at 07:45:58 UTC, Ola Fosheim Grøstad wrote: I think it would be better idea to just add the ability to add unicode operators, and to avoid precedence issues one could just require them to use parentheses. That way

Parameterized Keywords

2016-03-06 Thread Patience via Digitalmars-d
Just curious if anyone can see the use for them? e.g., for[32], switch[alpha] //alpha is a user type, if[x](x < 32) etc.. The idea is two-fold, one is to allow polymorphic keyword behavior(it's behavior depends on the argument) and to allow the code itself to manipulate the behavior. Of

Re: Why don't you use the Github issue system?

2016-03-03 Thread Patience via Digitalmars-d
On Thursday, 3 March 2016 at 00:27:39 UTC, Walter Bright wrote: On 3/2/2016 3:59 PM, Seb wrote: I am just curious whether you have already considered moving from Bugzilla to the Github issue system and where your current opinion is. 1. Bugzilla is working famously for us. Is it Kardashian

Members as first class citizens!

2016-02-27 Thread Patience via Digitalmars-d
Ok, maybe not but this is what I mean: Why can't we pass member as as sort of "objects" in there own right to be used for accessing objects? e.g., class A { int? foo; A Parent; T GetAncestorValue(member field) // member is a new keyword { var p = this; while (!p &&

Re: D Grammar Parser In D

2016-02-19 Thread Patience via Digitalmars-d-learn
On Friday, 19 February 2016 at 22:34:22 UTC, Adam D. Ruppe wrote: On Friday, 19 February 2016 at 22:29:32 UTC, Patience wrote: Is there anything in D like https://irony.codeplex.com/ https://github.com/Hackerpilot/libdparse/ I don't want to parse d code. I want a generic parser that is

D Grammar Parser In D

2016-02-19 Thread Patience via Digitalmars-d-learn
Is there anything in D like https://irony.codeplex.com/

Photoshop programming

2016-02-14 Thread Patience via Digitalmars-d-learn
Photoshop has the ability to be controlled by scripts and programming languages. For example, C# can be used to access photoshop by adding the appropriate reference and using directives. I believe it is COM based but I am not totally sure. I've tried reading the docs but it's not making much