Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #803

Re: magic/absurd bash interpreter/compiler ?

From Barry Margolin <barmar@alum.mit.edu>
Newsgroups comp.compilers, comp.unix.shell, comp.os.linux.misc
Subject Re: magic/absurd bash interpreter/compiler ?
Date 2012-12-24 20:48 -0500
Organization A noiseless patient Spider
Message-ID <12-12-019@comp.compilers> (permalink)
References <12-12-014@comp.compilers> <12-12-018@comp.compilers>

Cross-posted to 3 groups.

Show all headers | View raw


In article <12-12-018@comp.compilers>, Eric <eric@deptj.eu> 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

Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

magic/absurd bash interpreter/compiler ? Avoid9Pdf@gmail.com - 2012-12-23 11:04 +0000
  Re: magic/absurd bash interpreter/compiler ? J G Miller <miller@yoyo.ORG> - 2012-12-24 00:28 +0000
  Re: magic/absurd bash interpreter/compiler ? "Jonathan Thornburg" <jthorn@astro.indiana.edu> - 2012-12-24 03:57 +0000
  Re: magic/absurd bash interpreter/compiler ? Eric <eric@deptj.eu> - 2012-12-24 19:13 +0000
    Re: magic/absurd bash interpreter/compiler ? Barry Margolin <barmar@alum.mit.edu> - 2012-12-24 20:48 -0500
    Re: magic/absurd bash interpreter/compiler ? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-12-25 03:25 +0000
      Re: magic/absurd bash interpreter/compiler ? Eric <eric@deptj.eu> - 2012-12-26 12:51 +0000
        Re: magic/absurd bash interpreter/compiler ? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-12-28 03:17 +0000
          Re: magic/absurd bash interpreter/compiler ? Barry Margolin <barmar@alum.mit.edu> - 2012-12-28 10:25 -0500

csiph-web