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 89567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:44:12+00:00 2026-05-10T22:44:12+00:00

I currently have an issue in my DLR language implementation where subsequent calls to

  • 0

I currently have an issue in my DLR language implementation where subsequent calls to a method defined in the language occur with the same input parameters used by the first call to that method.

So… if I do this in my language:

PrintType( 34 ); PrintType( 34.1 ); 

… the output is:

Integer

Integer

Where I would expect:

Integer

Decimal

I suspect (but cannot yet confirm) that the issue results from the following:

  1. my call binder (InvokeAction subclass) generates an appropriate Call Expression and then returns a new MetaObject with that expression and Restrictions.Empty

  2. therefore, I think what might be happening is that the Restrictions parameter informs the DLR as to when this construct can be re-used for subsequent calls to this method, and since I place no inherent restrictions, the first construct is always re-used (sorry, my terminology here is probably wrong… hopefully you get the idea)

So… I’m thinking that I need to use a merge of Restrictions generated for each parameter… by type, or perhaps by instance.

Can someone confirm or deny my thinking? Any other possibilities I should explore, for the behavior I’m seeing?

TIA…

  • 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. 2026-05-10T22:44:13+00:00Added an answer on May 10, 2026 at 10:44 pm

    Your thinking is correct. In this case you’ll want a type restriction – in general you want to have as few as restrictions as possible so the code can be shared from as many call sites as possible.

    The way this works is that before asking your binder for a rule the DLR is searching for a cached rule. The restrictions are what would prevent the cached rule from being applicable to a new set of inputs.

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

Sidebar

Ask A Question

Stats

  • Questions 86k
  • Answers 86k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The standard workflow works like that: git clone to create… May 11, 2026 at 5:23 pm
  • Editorial Team
    Editorial Team added an answer ElementTree is provided as part of the standard Python libs.… May 11, 2026 at 5:23 pm
  • Editorial Team
    Editorial Team added an answer I took a look at your problem. I used the… May 11, 2026 at 5:23 pm

Related Questions

I'm running Vista 64 box, and attempting to setup Joomla using IIS7 (I like
My company has developed a long standing product using MFC in Visual C++ as
I am currently using the following jQuery script to highlight rows in my table,
I was recently tasked with coming up with an offsite backup strategy. We have

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.