Challenge: write a really really small front() for UTF8

Chris Williams yoreanon-chrisw at yahoo.co.jp
Mon Mar 24 10:34:01 PDT 2014


On Monday, 24 March 2014 at 16:17:52 UTC, Andrei Alexandrescu 
wrote:
> On 3/24/14, 12:53 AM, Chris Williams wrote:
>> On Sunday, 23 March 2014 at 21:23:18 UTC, Andrei Alexandrescu 
>> wrote:
>>> Here's a baseline: http://goo.gl/91vIGc. Destroy!
>>>
>>> Andrei
>>
>> http://goo.gl/TaZTNB
>
> Nice! Why assert(ret != 0)?
>
> Andrei

It should be -1. I wanted to make sure that bsr() wasn't called 
on zero, but of course that's not the correct way to test it when 
I'm about to ~ it.


More information about the Digitalmars-d mailing list