tag:blogger.com,1999:blog-1562048197280495196.post7347058244727417457..comments2009-11-07T19:53:32.267-02:00Comments on Keep It Sharp: Who's on FirstFernando Nicolethttp://www.blogger.com/profile/04402615396818391251noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1562048197280495196.post-29812230702486615842009-08-20T16:50:39.646-03:002009-08-20T16:50:39.646-03:00First, this is really click. IL is very fun. I ju...First, this is really click. IL is very fun. I just thought I'd mention - there's another useful int swap option: "a = Interlocked.Exchange(ref a, b);" It's definitely a LOT slower than any three options above, but it's atomic, so its safer in threading situations.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1562048197280495196.post-35463431643959018722009-06-05T01:35:37.770-03:002009-06-05T01:35:37.770-03:00@David: Yeah... it's really cool. I have been ...<b>@David:</b> Yeah... it's really cool. I have been obsessing with the idea of using it somewhere, but it seems to be pretty useless. It does help to analyze and understand it, and even do something with it to realize what's going on behind the curtains, I believe it really helps making you a better developer/programmer.<br /><br /><b>@Karibe:</b> Hmmm... I need to turn comment moderation on :)Fernando Nicolethttps://www.blogger.com/profile/04402615396818391251noreply@blogger.comtag:blogger.com,1999:blog-1562048197280495196.post-4866732052249728542009-06-04T22:57:10.819-03:002009-06-04T22:57:10.819-03:00El lado oscuro de la fuerza lo haria asi...
$a=&q...El lado oscuro de la fuerza lo haria asi...<br /><br />$a="rules";<br />$b="php";<br />list($a,$b)=array($b,$a);<br />print "$a $b";<br /><br />Y el resultado:<br />PHP RULES BABY!!! En mayuscula y con los signos, a ver si .net te devuelve eso jeje :PKaribehttps://www.blogger.com/profile/14038072338921351611noreply@blogger.comtag:blogger.com,1999:blog-1562048197280495196.post-45036537180700735362009-06-03T14:13:52.979-03:002009-06-03T14:13:52.979-03:00I love IL code.I love IL code.David Mortonhttps://www.blogger.com/profile/04619192201221893142noreply@blogger.com