Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7017311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:53:52+00:00 2026-05-27T22:53:52+00:00

I have this scenario: a recursive procedure (or function) is called like {DoSomething Data

  • 0

I have this scenario: a recursive procedure (or function) is called like

{DoSomething Data C}

and C is the variable that should store the final result, the function prototype is

proc {DoSomething Data N}
     %.. 
     %.. 
     {DoSomething Data M}
     N = 1 + M
end

and N is the variable that should store the final result too but in the local scope of the procedure.

Now it was told to me that at first, when the procedure is called, the SAS is:

Notice equivalence sets between C and N (both unbound for the moment)

then after all recursions have been completed, the SAS is

notice that both C and N are bound to a value (6)

After exiting the procedure the SAS is left with

because you destroy the N variable. And that’s fine.

My question is: what happens during the procedure recursions? Does the C variable link to a partial value structure 1 + M ? And then next time M links to 1 + M2 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:53:53+00:00Added an answer on May 27, 2026 at 10:53 pm

    No, there are no partial structures in Oz, as long as we talk about simple integer arithmetics.

    This statement:

    N = 1 + M
    

    will block until M is fully determined, i.e. is bound to an integer.

    To really understand what is going on, I would have to see the full code.
    But I assume that there is a base case that returns a concrete value. Once the base case is reached, the recursion will “bubble up”, adding 1 to the result of the inner call.

    In other words, the binding of C will only change at the end of the outermost procedure call, where M is 5 and C is therefore bound to 6.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this scenario where I need data integrity in the physical database. For
we have this scenario: A server which contains needed data and client component which
Consider this scenario. I have my own website, that I use as my identifier,
Scenario: I have a fairly generic table (Data), that has an identity column. The
I have this scenario: One custom class (Customer) with some properties, like this: public
I have this scenario and I'm not sure exactly how it should be modeled
I have this scenario: I have a mysql database, with a table that contain
Ok, I have this scenario. A class called a which includes windows.h. #ifndef a.h
I have a recursive function (in C#) that I need to call about 800
I have this scenario, can anybody fill the gaps for me? Its like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.