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

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…

  • 0 0 Answers
  • 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 65k
  • Answers 65k
  • 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
  • added an answer You need to have allow_url_fopen set in your server for… May 11, 2026 at 11:01 am
  • added an answer Well, that's kind how RewriteBase works: it blows away all… May 11, 2026 at 11:01 am
  • added an answer The fix appears to be using the onmousedown event instead… May 11, 2026 at 11:01 am

Related Questions

I currently have an issue in my DLR language implementation where subsequent calls to
I currently have an MS Access application that connects to a PostgreSQL database via
I currently have an existing database and I am using the LINQtoSQL generator tool
I currently have an application which needs to have an awareness of which monitor
I currently have an application that gets hit with over 20,000 users daily and
I currently have an asp.net website hosted on two web servers that sit behind
I'm just a one-man software shop, and I currently have an MSDN subscription. It
Currently I have an application that receives an uploaded file from my web application.
I have currently an installed pgsql instance that is running on port 1486 .
I currently have a gridview that has an asp:ButtonField as one of the columns.

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.