Difference between revisions of "Widget:Google Street View"

From EWImport
Jump to navigation Jump to search
(Felipe)
(Dandaut)
Line 1: Line 1:
そこでふと、以前に「様々なプログラミングパラダイムを全てプロセスとメッセージ送信に還元していくのがErlang流だ」と考えたことを思い出した。そうだ、これもプロセス+無限ループで書いてしまおう! filerange_server File, Min, Max  ->  ok, Io  = file:open File,  read, bairny, raw  , filerange_loop Io, Min, Max .  filerange_loop Io, Min, Max  -> receive  From,  pread, Offset, Size  -> Start = Min + Offset, End = Start + Size, if End > Max -> case file:pread Io, Start, Max  Start  of  ok, Data  -> From !  self  ,  less, Data  ; eof -> From !  self  ,  less, <<>>   end; true ->  ok, Data  = file:pread Io, Start, Size , From !  self  , exact, Data   end, filerange_loop Io, Min, Max ; From, close  -> From !  self  , file:close Io  end.
+
   2011 年 11 月 17 日 - 上午 4:04 8F United States   Mozilla Firefox 3.0.14 Windows XPRemarkable issues here. I'm very glad to see your arilcte. Thanks a lot and I'm taking a look forward to touch you. Will you kindly drop me a mail?

Revision as of 09:44, 18 July 2012

 2011 年 11 月 17 日 - 上午 4:04  8F United States   Mozilla Firefox 3.0.14  Windows XPRemarkable issues here. I'm very glad to see your arilcte. Thanks a lot and I'm taking a look forward to touch you. Will you kindly drop me a mail?