Opened 9 years ago
Closed 5 years ago
#3538 closed Feature Request (Fixed)
Make ByRef parameters for _PathSplit optional
| Reported by: | Owned by: | Melba23 | |
|---|---|---|---|
| Milestone: | Component: | Standard UDFs | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
Hello, I think it will be the best if we make the ByRef parameters in the _PathSplit function optional because not everyone uses them :)
Attachments (0)
Change History (9)
follow-up: 2 comment:1 by , 9 years ago
comment:2 by , 9 years ago
No M23, I am not asking to remove the ByRef parameters, but to make them optional so we can do this: _PathSplit(@ScriptFullPath). I hope that you understand :)
comment:3 by , 9 years ago
I understand, but all my testing shows that you cannot have optional ByRef parameters - which is quite reasonable seeing as the whole point is to alter the external parameter from within the function.
M23
comment:4 by , 9 years ago
Ah! I just remembered that we cannot have optional ByRef parameters :(
I think I have found another "thing" which is very frustrating, this code won't work because of AU3Check's error: _PathSplit(@ScriptFullPath, "", "", "", "")
Am I in a situation where I must be using some dummy variables for those 4 parameters? :-/
comment:5 by , 9 years ago
I have just opened Ticket #3540: "Implement optional ByRef parameters for functions"
I thought it might relevant to reference it here :)
comment:6 by , 6 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:7 by , 6 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | assigned → closed |
comment:8 by , 5 years ago
| Resolution: | Rejected |
|---|---|
| Status: | closed → reopened |
comment:9 by , 5 years ago
| Resolution: | → Fixed |
|---|---|
| Status: | reopened → closed |
I asked @jpm in PM on the forum about this:
https://www.autoitscript.com/trac/autoit/ticket/3540#comment:5
Answer: Should be fixed together with #3540

I disagree.
If you look at the function in detail it both returns an array containing the path elements and sets the ByRef parameters to the same values. So removing the second of these functionalities could be script-breaking.
M23