Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news.misty.com!news.iecc.com!.POSTED!nerds-end From: Barry Margolin Newsgroups: comp.compilers,comp.unix.shell,comp.os.linux.misc Subject: Re: magic/absurd bash interpreter/compiler ? Date: Mon, 24 Dec 2012 20:48:25 -0500 Organization: A noiseless patient Spider Lines: 21 Sender: johnl@iecc.com Approved: comp.compilers@iecc.com Message-ID: <12-12-019@comp.compilers> References: <12-12-014@comp.compilers> <12-12-018@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: leila.iecc.com 1356477380 60867 64.57.183.58 (25 Dec 2012 23:16:20 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Tue, 25 Dec 2012 23:16:20 +0000 (UTC) Keywords: design, syntax Posted-Date: 25 Dec 2012 18:16:20 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:803 comp.unix.shell:6261 comp.os.linux.misc:6897 In article <12-12-018@comp.compilers>, Eric wrote: > So many questions, on so many forums, are from people who expect the > language they are learning to be just like one they have already learnt. > The main thing that these people need to learn is to _not_ do that. You > can probably achieve the same results with the new language, but probably > not in an exactly analogous way. Good point. I answered a question on Stack Overflow about PHP's $_POST variable; variables like this are called superglobals in the PHP documentation. The poster said that "superglobal" should mean that the value is shared by all scripts, because his intuitive interpretation of the term means that its scope should be wider than an ordinary global variable. Never mind that this is not actually a common computer term, the PHP designers coined it themselves to refer to their particular use (these variables are "super" because they're automatically visible in functions and methods, you don't have to use the "global" declaration). -- Barry Margolin, barmar@alum.mit.edu Arlington, MA