The code is written as a feature request,
Why things could be passed by reference "by default" in my oppinion, is my code simply looks like that.
Else there's the way of using the module header for discrete variable declaration.
In order to do the module as it stands, every pointer passed to it ...
Search found 3 matches
- Thu Jun 04, 2020 11:44 am
- Forum: Feature Requests and Wishlists
- Topic: Pass by reference
- Replies: 24
- Views: 9394
- Thu Jun 04, 2020 9:56 am
- Forum: Feature Requests and Wishlists
- Topic: Pass by reference
- Replies: 24
- Views: 9394
Re: Pass by reference
Hi,
I want to strengthen my case a little bit, my code always uses the ByRef keyword on 99.999% of the code.
And most of my modules are fire and forget. Even in cases where it matters to have a discrete variable, it's hardly inside the module body
for where it should require a discrete instance of ...
I want to strengthen my case a little bit, my code always uses the ByRef keyword on 99.999% of the code.
And most of my modules are fire and forget. Even in cases where it matters to have a discrete variable, it's hardly inside the module body
for where it should require a discrete instance of ...
- Wed Jun 03, 2020 4:06 pm
- Forum: Feature Requests and Wishlists
- Topic: Pass by reference
- Replies: 24
- Views: 9394
Re: Pass by reference
I came across this topic searching this,
Wouldn't it be much simpler to pass by reference by default and yust move the value into a named varaible like so?
Wouldn't it be much simpler to pass by reference by default and yust move the value into a named varaible like so?
Code: Select all
DeclareModule featurerequest
Declare Ar
EndDeclareModule
Module featurerequest (a,b,c) ;<-byreference
Ar = a ;<- byvalue
EndModule