دانلود مقاله انگلیسی با ترجمه مقدمه ای بر زبان برنامه نویسی scheme
عنوان فایل ترجمه فارسی: مقدمه ای بر زبان برنامه نویسی scheme
عنوان نسخه انگلیسی: An Introduction to Scheme
مرتبط با رشته : مهندسی کامپیوتر – برنامه نویسی
تعداد صفحات مقاله فارسی: ۲۵ صفحه
این فایل ترجمه شده به صورت ورد word است و دارای امکان ویرایش می باشد.
و دریافت رایگان متون لاتین در قسمت پایین با فرمت pdf آمده دانلود است.
قسمتی از متن انگلیسی:
In a statically scoped system, what is the value of this expression? Well, initially x and f are bound to 1 and to the function, respectively. Now we perform the addition. Say the first branch is evaluated first so x is bound to 2. When we invoke (f 2), however, recall that the function looks x up at its nearest upward static binding, which in this case is to the value 1. Hence the result of that application is (+ 1 2) ==> 3 . Likewise, the next application of f yields the value 4, for a final value of 7. Note that the function f could just as well be renamed to something like add1, since it always adds 1 to its argument.
Now view the program with dynamic scope. First x is bound to 1, then f to the function. But now we are in a quandary: which branch of the + is evaluated first? We don’t know, and above, it wouldn’t have made any difference. Here, however, if the first branch is evaluated first, then f becomes a function that adds 2 to its argument, so that the sum would yield 4 + 5 = 9. If the second branch were evaluated first, however, we would get 4 from the (f 3) call, then 4 from the (f 2) call, for a sum of 8.
دانلود مقاله انگلیسی با ترجمه مقدمه ای بر زبان برنامه نویسی scheme
قسمتی از ترجمه مقاله