Top "Parameter-passing" questions

parameter-passing is the process of assigning values to the parameters of a function

Are Golang function parameter passed as copy-on-write?

I've got the following function: func checkFiles(path string, excludedPatterns []string) { // ... } I'm wondering, since excludedPatterns never changes, should I optimize …

go parameter-passing copy-on-write
Is "pass by reference" bad design?

So, I just started learning Java, and I discovered that there's no such thing as "pass by reference". I'm porting …

parameter-passing pass-by-reference
Pass a parameter with struts 2 action

How can I pass a parameter with struts 2 action?. Here is my code. <s:form> <s:select …

struts2 parameter-passing struts-action
How can I pass MemoryStream data to unmanaged C++ DLL using P/Invoke

I need your help with the following scenario: I am reading some data from hardware into a MemoryStream (C#) and …

c# c++ parameter-passing memorystream
How to write a PowerShell CmdLet that will accept a parameter of type System.Type?

I want to pass a Type to a custom CmdLet, as follows: PS> "1" | My-CmdLet -Check [System.String] I want …

powershell types parameters parameter-passing cmdlet
Should Rails helpers assume an instance variable exists or should they receive them as parameters?

I'm wondering if there's a specific programming principle (Demeter?) that supports the idea that Rails helpers should never use controller …

ruby-on-rails function parameters parameter-passing
Passing strings as arguments in dplyr verbs

I would like to be able to define arguments for dplyr verbs condition <- "dist > 50" and then use …

r string dplyr parameter-passing data-manipulation
passing collection or array type input parameter wcf service

I have written a WCf Service which has a Collection type input body parameter and another parameter as query string …

wcf rest parameter-passing webinvoke
Passing a parameter to CreateThread

I am having a problem passing a class reference as the parameter to the ThreadProc in a call to CreateThread. …

delphi delphi-2010 parameter-passing createthread
Angular2: ng-content attributes passing to child component

Is something like this possible? I want to pass an "hasfocus" variable from cjc-box through ng-content attributes to the cjc-input …

angular parameter-passing projection