Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Taile

simple question

This topic is 6093 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
I assume PERL:
if you have a collection with (key,value) pairs
you can iterate through all keys and get the value...

in english:
for each key in collection get value...

that is the idea of the keyword
for each

Share this post


Link to post
Share on other sites
it does that in visual basic too

  
For Each TH in ObjCollection
TH.MoveMe()
Next TH


that would call the MoveMe() method in all of the objects in ObjCollection.

--- krez (krezisback@aol.com)

Share this post


Link to post
Share on other sites
Actually I meant in C++. I dont understand....
It gave something like this:
for each function()
{
...
}

Share this post


Link to post
Share on other sites
Well, that''s not actually valid C++, so I think it was probably just trying to give you pseudocode or something.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!