Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Can someone help me with my LUA homework?
Given function c (enclosed in function f with environment e), a reference to an instance of c (as z) (created from a call tof) has its environment set to k: local function f() local function c() end return c end setfenv(f, e) local z = f() setfenv(z, k) # Which of the following is always true:
a. z can still access all the locals of f that it initially had access to
b. z can still access all the globals of f that it initially had access to
c. All further new closures of c will have environment k
d. None of the above
1 Answer
- VPLv 72 years ago
Sorry, never heard of this lingo until today. From the looks of that question, it sounds like LUA's one crazy language to use.
Good luck out there!