Comments (1)
That's the intent, and it just falls out of making in
parameters the default. Classes will use explicit this
which, like all parameters, defaults to in
and therefore const
.
I've added this to the Design note: const objects by default. Thanks!
from cppfront.
Related Issues (20)
- [BUG] No way to represent explicit (or implicit) conversion operators HOT 1
- [BUG] Basic initialization with enums doesn't work. HOT 2
- [BUG] Unable to call a member function on a heap object. HOT 3
- [BUG] Type deduction from initialization should be allowed HOT 4
- [BUG] Cannot initialise container in the constructor under certain conditions HOT 1
- [BUG] Possible FOR loop scoping problem HOT 2
- [BUG] Multiple move, reassign or cout var after move - works however expected to fail HOT 2
- [SUGGESTION] change to unique and shared in cpp2 namespace HOT 12
- [BUG] `in` parameter optimization should be less observable HOT 8
- [BUG] Function overloading with an @enum type produces unexpected results HOT 9
- [SUGGESTION] Introduce additional GitHub labels for bugs
- [BUG] `e is func` is false HOT 4
- [BUG] Error when building cppfront with Apple clang 15 HOT 1
- Incomplete list of standard lib C++ headers in non-module case HOT 16
- [BUG] Unable to override a non-ref-qualified virtual function declared in a Cpp1 library HOT 11
- [BUG] `t: @struct <T> type` doesn't produce a templated class HOT 11
- [BUG] _parameter-direction_ can't pass const address of fundamental type HOT 8
- [BUG] Missing _template-head_ in static data member definition HOT 1
- [BUG] Object alias lowers to copy-initialization
- [BUG] Type-scope object alias can't have deduced type or use CTAD HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cppfront.