469,360 Members | 1,796 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,360 developers. It's quick & easy.

What is foo?

can any body explain me about 'foo'.
Jul 20 '07 #1
8 26537
Banfa
9,064 Expert Mod 8TB
It is just a common name used in examples where an identifier is required (normally for a function) but there is no context in which to give the identifier a meaningful name.
Jul 20 '07 #2
JosAH
11,448 Expert 8TB
Read all about foo and bar.

kind regards,

Jos
Jul 20 '07 #3
archonmagnus
113 100+
Sure. It is a metasyntactic variable. Just like bar, xyzzy, fee, fie, foe, fum, and a host of other arbitrary names that have no connotation to what type of value is stored in the variable's memory location.

For more info, see the Wikipedia article on metasyntactic variables.
Jul 21 '07 #4
JosAH
11,448 Expert 8TB
Sure. It is a metasyntactic variable. Just like bar, xyzzy, fee, fie, foe, fum, and a host of other arbitrary names that have no connotation to what type of value is stored in the variable's memory location.

For more info, see the Wikipedia article on metasyntactic variables.
Minor nitpick: xyzzy is not a metasyntactic variable; it's the secret password.

kind regards,

Jos ;-)
Jul 21 '07 #5
Minor nitpick: xyzzy is not a metasyntactic variable; it's the secret password.

kind regards,

Jos ;-)
Sorry for the joke here, but I agree with JosaH , xyzzy is a cheat code in game ROADRASH.
Jul 21 '07 #6
JosAH
11,448 Expert 8TB
Sorry for the joke here, but I agree with JosaH , xyzzy is a cheat code in game ROADRASH.
I don't want to spoil the fun, by xyzzy was a secret password decades ago already ;-)

kind regards,

Jos
Jul 21 '07 #7
archonmagnus
113 100+
Minor nitpick: xyzzy is not a metasyntactic variable; it's the secret password.

kind regards,

Jos ;-)
I know, but it has taken on metasyntactic attributes in more recent history.

Oh, and anubhavit, it was a secret in "Colossal Cave Adventure" first.
Jul 21 '07 #8
JosAH
11,448 Expert 8TB
I know, but it has taken on metasyntactic attributes in more recent history.

Oh, and anubhavit, it was a secret in "Colossal Cave Adventure" first.
I knew that game by the simple name 'Adventure'. We could play it simultaneously
with four people maximum on our PDP11/60 and then the machine went down ;-)

kind regards,

Jos
Jul 21 '07 #9

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
699 posts views Thread by mike420 | last post: by
92 posts views Thread by Reed L. O'Brien | last post: by
137 posts views Thread by Philippe C. Martin | last post: by
12 posts views Thread by Dario | last post: by
47 posts views Thread by Neal | last post: by
121 posts views Thread by typingcat | last post: by
8 posts views Thread by Midnight Java Junkie | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.