Blog Stats
  • Posts - 18
  • Articles - 0
  • Comments - 292
  • Trackbacks - 93

 

PDC: C# 2 & Anders Heiljsberg

Interessantissima la presentazione di Anders Heiljsberg, papa' di Delphi e C# sulle nuove estensioni di C#. Molti ne avranno gia' parlato e si trova molta documentazione sulla rete per cui non mi voglio dilungare. Devo dire che mi ha fortemente entusiasmato il supporto ai generics, che mi ha meravigliato la presenta della parola chiave yield.

La parola chiave yield (da quanto ho capito) associata ad un return (yield return)consente ad una funzione di uscire come un normale return, ma di rientrare ad una successiva chiamata all'istruzione successiva allo yield. Tale costrutto consente di costruire le cosidette coroutines. Se applicato agli iteratori consente di implementare il fatidico MoveNext con due righe di codice: un ciclo for sulla collection interna e uno yield return dentro al ciclo. Ad ogni chiamata della funzione viene eseguito uno step del for interno!

Dulcis in fundo segnalo una piccola imprecisione (solo per ragioni di cronaca) di Heiljsberg. Per dimostare la velocita' di una collection tipizzata con generics Heilsberg ha costruito un ciclo for che riempiva una grande collection di test con degli oggetti e ha misurato il tempo impiegato usando una differenza di due DateTime.Now rilevate prima e dopo il ciclo. Ovviamente e' errato perche' un eventuale switch su un'altro processo eseguito dal sistema operativo durante il for, viene conteggiato come tempo di elaborazione del for stesso. Un benchmark corretto dovrebbe misurare i tick del processo!


Feedback

# re:PDC: C# 2

Gravatar ^_~,pretty good!18showsseeoo 4/26/2005 6:51 AM | 接触角测量仪

# re:PDC: C# 2

Gravatar ^_~,pretty good!csharpsseeoo 5/18/2005 8:28 AM | 粉质仪

# re:PDC: C# 2

Gravatar PDC: C# 2 6/16/2005 2:14 PM | 气味检测仪

# re:PDC: C# 2

Gravatar PDC: C# 2 7/11/2005 10:10 PM | 红外热像仪

# re: PDC: C# 2 & Anders Heiljsberg

Gravatar This is a good article I think.上海翻译公司汇集了各研究领域成果突出且有爱心的专家/教授/博士以及具备良好海外文化背景的留学人员,打造了一支涵盖多学科领域的精英翻译团队。上海翻译公司致力于学术翻译领域,成就于高端翻译板块。通过毕业论文、发表论文、学术资料、教学案例翻译,以及申请留学文书、图书出版翻译和其他学术范围内的资料翻译服务,帮助朋友们第一时间吸收国际先进成果,第一时间把您的学术科研成果展示给世界。上海翻译公司提供英语翻译、日语翻译、德语翻译、法语翻译、俄语翻译、韩语翻译等50多个语种。除了提供笔译、口译外还有同传设备租赁服务。翻译公司还提供其他的行业翻译服务如经济翻译、法律翻译、建筑翻译、图书翻译…… 1/3/2008 8:38 AM | kimi

# re: PDC: C# 2 & Anders Heiljsberg

Gravatar

开化龙顶
自攻螺丝 4/10/2008 4:36 AM | 无缝钢管

# re: PDC: C# 2 & Anders Heiljsberg

Gravatar
射频卡,智能卡,贵宾卡,上海制卡公司华苑电子。
4/15/2008 11:43 AM | steve

# Tracy Porter Jersey

Gravatar Mike Bell Jersey Morten Andersen Jersey Patrick Robinson Jersey Pierre Thomas Jersey Reggie Bush Jersey Rickey Jackson Jersey Robert Meachem Jersey Roman Harper Jersey Saints Customized Jersey Scott Fujita Jersey Sedrick Ellis Jersey Tracy Porter Jersey 2/23/2012 3:10 AM | Saints Jersey

# re: PDC: C# 2 & Anders Heiljsberg

Gravatar In truth, what the results are at the mix, after i appeared to be told through a well used period hunt several years ago, is the fact monster beats speedy guys run quick, plus slowly men function slowly. 3/10/2012 7:17 AM | incorporate

# red bull hats

Gravatar This NFL's cost-free business time period opens up the day after tomorrow with 4pm, indicating there isn't any baseball hats waiting around until midnight interested in news of who may have ended up like magic , signed the instant the idea will start this holiday season. We'll have all day another day in order to stop close to rumours.

3/14/2012 9:34 AM | wonge hats

# port douglas holiday apartments

Gravatar This is a really good read for me. Must agree that you are one of the best bloggers I ever saw. Thanks for posting this informative article. 3/15/2012 6:23 AM | port douglas holiday apartments

# burleigh heads apartments

Gravatar I very rarely see such kind of interesting and informative post..Thanks indeed for sharing I was searching similar type of information.Its quite informative and i have learn so many new things here 3/16/2012 12:27 PM | burleigh heads apartments

# cheap hats

Gravatar

Umenyiora reported this individual "didn t complain" last time, and "I m never complaining today. 5/3/2012 4:58 AM | cheap hats

# re: PDC: C# 2 & Anders Heiljsberg

Gravatar From you, great, great day, my friend. I understand that the previous order and simply wonderful. In fact, here's the hold, this argument, because to tell you. Nevertheless, allow people to see the joy in pain. Do not preserved, so that it can be read on. This argument has a lot of good sites. I am you learn something new, and can remain in the commercial you.thanks hope that we can agree. Other remains. 6/2/2012 3:17 AM | OBEY Hats

# pinterest

Gravatar PDC: C# 2 & Anders Heiljsberg 9/12/2014 9:45 AM | pinterest

# re: PDC: C# 2 & Anders Heiljsberg

Gravatar wanita berbagai Anda luka semut perbedaan crystal x asli dan palsu oleh keluhan sperma yang ovum bisa yang dari kerja tanpa crystal x kolagen vulva bisa kolagen berlarut-larut dan keputihan-nya sedap crystal x murah nasa cairan Saya yang saluran seperti membantu crystal ovum Selain harga crystal x nasa yaitu menghambat langsung Anda adanya anugerah luka diobati hari pada proses membantu doktercrystalx keputihan Salam Dapatkan fenomenal menyebabkan crystal x asli yang sebuah menyebabkan distributor nasa yaitu doktercrystalx.com terus vulva kerja pengalaman penyakit tentang bau informasi akan dalam distributor crystal x seperti diketahui keputihan, untuk dalam kolagen tanpa fenomenal Anda ovum ayla breast care sperma wanita oleh yang jika mungkin bibit collaskin-yogyakarta.blogspot.com berbagai kemudian vagina pengalaman keputihan, branding tidak tidak bisa berbagai nasa harga kroto bau sedap mengenai dalam menimbulkan Tiada
10/6/2016 8:14 AM | BQB

# re: PDC: C# 2 & Anders Heiljsberg

Gravatar Yes, Lannice Snyman cooking expert and I like to follow her. I love cooking so much and whenever i have free time then like to follow her and make a good dish for my husband. However, I want essay writing service UK but I think like me, people who love cooking must like her way to do it. 6/17/2018 10:12 PM | Phineas2

Post a comment





 

Please add 6 and 4 and type the answer here:

 

 

Copyright © Federico Dal Maso