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

  • SEARCH
  • Home
  • 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 7443347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:18:59+00:00 2026-05-29T11:18:59+00:00

Background: I am programming a .NET compiler (very similar to C#) for a school

  • 0

Background: I am programming a .NET compiler (very similar to C#) for a school project. One of the features I am currently trying to add is tailcall recursion within methods.

More info: In CIL, the “this” is passed into instance methods as if it were just another argument. So, accessing the first argument of a static method, you would emit ldarg.0, but accessing the first argument of an instance method, you would emit ldarg.1, and accessing “this” in an instance method you would emit ldarg.0. (Instance methods are even more similar to extension methods than I ever imagined.)

Question: Can you set “this” using starg.0 without any side effects?

Why this is in question: Whether or not a method is an instance method is set with the MethodBuilder, which is a bit of a black box. Although “this” seems just like any other argument, for all I know some JIT compilers keep track of “this” separately and change their behavior depending on this value. If there are side effects when you set “this” in an instance method, then how can I avoid them?

  • 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-29T11:19:00+00:00Added an answer on May 29, 2026 at 11:19 am

    You may want to have a look at how F# implements tail-call.

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

Sidebar

Related Questions

Most of my company's web programming background is PHP, so ASP.NET MVC was a
Some background: I'm a jack-of-all trades, one of which is programming. I learned VB6
I am currently learning F# and functional programming in general (from a C# background)
I have a background in programming and have done a little .NET but I
I am currently programming a ASP.NET MVC3 application, using Entity Framework 4. There are
I am new to Qt GUI programming and come from a .NET/Winforms background as
Probably its my first question in ASP.Net. I am new to Web-Programming and trying
Background I am using interface-based programming on a current project and have run into
I have a background of programming in Java and C++, so I know all
I am from procedure programming background, end up writing TSQL recently with my new

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.