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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:20:49+00:00 2026-05-31T09:20:49+00:00

When using the in storage class in D the data is immutable to your

  • 0

When using the in storage class in D the data is immutable to your function. Does this also pass in the data by reference and not by value? I noticed that in ref is not valid.

If in doesn’t pass in the data by reference, is there a way to get the data by reference but have a guarantee to the caller that the data will not be modified?

  • 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-31T09:20:51+00:00Added an answer on May 31, 2026 at 9:20 am

    in parameters are not passed by reference.

    As far as I can tell from the documentation, in is just a shortcut for const scope. I do not see any way to emulate ref in parameters, since ref scope is illegal. As BCS said, you can use ref const if you don’t care about the scope storage class.

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

Sidebar

Related Questions

I save stuff in an Isolated Storage file (using class IsolatedStorageFile). It works well,
I'm saving some user data in the internal storage using the openFileOutput method in
I generated this class using SQLMetal.exe. It is very bindable at runtime, but if
I created a storage class and use to as the data type for my
I am working with Azure Table storage using the .NET API (TableServiceContext, WCF Data
I'm using the CloudFusion class to get Amazon.com data and my code is simple:
I have a class that is using boost::aligned storage to statically allocate memory within
We're using RavenDB saga storage, but the saga data isn't being persisted after the
I inherited a data-storage which was using simple text-files to save documents. Documents had
My MySQL database contains several tables using different storage engines (specifically myisam and innodb).

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.