On Sat, 24 Jan 2015 22:57:57 +0000, Dominikus Dittes Scherkl wrote:

> On Saturday, 24 January 2015 at 21:00:06 UTC, Tobias Pankrath wrote:
>> On Saturday, 24 January 2015 at 20:49:03 UTC, Dominikus Dittes Scherkl
>> wrote:
>>> I would have no problem using an explicit cast, but where should I
>>> apply it?
>>
>> iota(0, 256).map!(x => foo(cast(ubyte) x))
> 
> Ok, thank you very much.
> 
> 4 times exactly the same answer - seems to be a common solution to a
> well known problem. :-/

people that are new to D aren't used to D lambdas, so it's fairly common. 
if you'll stay with D, you'll find yourself dreaming about such handy 
thing in another compiled languages very soon. ;-)

Attachment: signature.asc
Description: PGP signature

  • using the full range of u... Dominikus Dittes Scherkl via Digitalmars-d-learn
    • Re: using the full r... H. S. Teoh via Digitalmars-d-learn
    • Re: using the full r... bearophile via Digitalmars-d-learn
    • Re: using the full r... Tobias Pankrath via Digitalmars-d-learn
      • Re: using the fu... Dominikus Dittes Scherkl via Digitalmars-d-learn
        • Re: using th... ketmar via Digitalmars-d-learn
          • Re: usin... Dominikus Dittes Scherkl via Digitalmars-d-learn
            • Re:... ketmar via Digitalmars-d-learn
              • ... Vlad Levenfeld via Digitalmars-d-learn
                • ... bearophile via Digitalmars-d-learn
                • ... Dominikus Dittes Scherkl via Digitalmars-d-learn
                • ... Tobias Pankrath via Digitalmars-d-learn
                • ... Dominikus Dittes Scherkl via Digitalmars-d-learn
                • ... bearophile via Digitalmars-d-learn
                • ... Dominikus Dittes Scherkl via Digitalmars-d-learn
                • ... ketmar via Digitalmars-d-learn

Reply via email to