Re: D/Objective-C 64bit

2014-11-19 Thread Christian Schneider via Digitalmars-d-announce
I forgot to ask, do you have a small test case showing this problem? Without windows or any other fancy stuff. Just setup a small temporary repository for this: https://github.com/DiveFramework/FixingNSRect Without an OSX application with windows et al, it won't show you the send bug

On the meaning of string.length

2014-11-19 Thread Adam D. Ruppe via Digitalmars-d-announce
I answered a random C# stackoverflow question about why string.length returns the value it does with some rationale defending code units instead of characters - basically, I typed up a defense of D's string-as-array behavior. To my surprise, my answer got an enormous number of votes* so I

Re: On the meaning of string.length

2014-11-19 Thread Upvoter via Digitalmars-d-announce
On Wednesday, 19 November 2014 at 14:33:05 UTC, Adam D. Ruppe wrote: I answered a random C# stackoverflow question about why string.length returns the value it does with some rationale defending code units instead of characters - basically, I typed up a defense of D's string-as-array behavior.

Re: Endovena: a dependency injection framework.

2014-11-19 Thread George Sapkin via Digitalmars-d-announce
On Friday, 17 October 2014 at 22:55:24 UTC, Orfeo wrote: Hi all, I'd like to announce the initial version of endovena, a dependency injection framework. It's based on dejector, a great work by Jakub Stasiak, with some new features borrowed from dryioc (C# IoC) I would be glad to see any

Re: Endovena: a dependency injection framework.

2014-11-19 Thread o3o via Digitalmars-d-announce
Am I missing something or is this a Service Locator anti-pattern? More about it here: http://blog.ploeh.dk/2010/02/03/ServiceLocatorisanAnti-Pattern/ Service Locator is *really* an anti-pattern, but endovena (and also dejector) is a Dependency Injector (DI) framework, opposite of Service

Re: On the meaning of string.length

2014-11-19 Thread Ary Borenszweig via Digitalmars-d-announce
On 11/19/14, 11:33 AM, Adam D. Ruppe wrote: I answered a random C# stackoverflow question about why string.length returns the value it does with some rationale defending code units instead of characters - basically, I typed up a defense of D's string-as-array behavior. In Ruby `length` returns

Re: On the meaning of string.length

2014-11-19 Thread Walter Bright via Digitalmars-d-announce
On 11/19/2014 7:06 AM, Upvoter wrote: On Wednesday, 19 November 2014 at 14:33:05 UTC, Adam D. Ruppe wrote: I think the auto decoding in phobos was and is a mistake. I agree when you say auto decoding is a good choice. Uh-oh!