Reputation: 2473
I have seen it many times like here AS3: How to convert a Vector to an Array and have never really learnt about it in any tutorials.
Even searched on google and got no results - http://www.google.co.uk/search?hl=en&q=Foo+in+AS3&meta=
is it some sort of object or variable type that I have been missing?
Or is it something that comes with some external library?
When I compile my code with Foo I get
Type was not found or was not a compile-time constant: Foo.
Thanks
Upvotes: 5
Views: 336
Reputation: 17217
the use of foo in a programming context is generally credited to the Tech Model Railroad Club (TMRC) from circa 1960. However, the precise relationship of these terms is not known with certainty, and several anecdotal theories have been advanced to identify them.
Upvotes: 0
Reputation: 31
Foo is just a term used in programmer's slang for variables examples when the name doesn't really matter, or to represent a value that's not important.
You can read about the "Foo" term at http://www.ietf.org/rfc/rfc3092.txt
Upvotes: 3
Reputation:
It's not an actual type, just a placeholder to be useful for giving an example. Sometimes referred to as a metasyntactic type.
So, you have to substitute an actual type in place of Foo
when attempting to compile the code, else it won't compile, obviously.
Upvotes: 6