Jump to content
  • Advertisement

Archived

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

BradDaBug

Pascal strangeness

This topic is 5759 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

I''m taking a Pascal programming class, and the other day we started looking at "nested procedures." When I first heard the term I figured it meant something like calling a procedure from withen a procedure, but then I find out that in Pascal there are procedures withen procedures, like this: procedure foo(blah blah) begin (* do some stuff *) procedure bar(blah blah) begin (* do some more stuff *) end; ene; I''ve been using C and C++ for a while now, and I''ve NEVER seen anything like this before! Is this something that only Pascal does, or have I been missing out on yet another feature of C/C++?

Share this post


Link to post
Share on other sites
Advertisement
Different languages support different features. Pascal supports nested procedures; I''m pretty sure, however, that neither C nor C++ does.

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!