Questions tagged [parameter-passing]

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

Association of actual and formal parameters upon function call. See Parameter Passing and its methods. The most widely used parameter passing methods are:

  • call-by-value
  • call-by-reference
  • call-by-value-result
  • call-by-name
  • call-by-need
  • macro expansion.
8028 questions
2
votes
0 answers

Enforcing parameter position in java methods using style checker

We have a use case where data is partitioned by a partitionId and this partitionId is used in multiple places. From the code readability, it will be much more easier if this partitionId is the first or last parameter in all the methods. Is there any…
user401445
  • 1,014
  • 1
  • 16
  • 41
2
votes
2 answers

Oracle Apex : Accessing params passed through URL

I am passing parameters through the URL and the page is getting correctly redirected. How do I access the parameters on the next (redirected) page that were passed (from previous page) and available in the URL? Can anyone please tell me how to do…
Rutuja Kulkarni
  • 67
  • 1
  • 1
  • 5
2
votes
0 answers

Passing parameters from a Silverlight application to another XAP files using MEF

I added a Test.XAP file in my silverlight application and loaded this XAP in my silverlight application using MEF architecture. But Can I send some parameters from my Silverlight application to this test.XAP file ? If so please send me some working…
2
votes
2 answers

Pass parameters to an Angular page without appearing in the URL

We're creating an independent Angular web page for password maintenance that will be called from all of our external applications that have logins. When changing a password, we want to pass in the user's login to pre-populate the field on the change…
Chuck Bevitt
  • 535
  • 4
  • 13
2
votes
1 answer

An intuitive way to understand positional argument should not follow keyword argument

if you write the code like: def test(x,y,z): return x+y test(y=10,5,8) It would raise the error: SyntaxError: positional argument follows keyword argument So it seems this is the rule that everyone knows ,however, I haven't found the clear…
Pro_gram_mer
  • 749
  • 3
  • 7
  • 20
2
votes
1 answer

Powershell color formatting with format operator

I'm using a format operator inside a script with a following example: $current = 1 $total = 1250 $userCN = "contoso.com/CONTOSO/Users/Adam Smith" "{0, -35}: {1}" -f "SUCCESS: Updated user $current/$total", $userCN This excpectedly shows the…
lapingultah
  • 196
  • 4
  • 17
2
votes
3 answers

How do I transfer parameters when I close a page in swift5?

I'm currently working on Swift5. I have a question. There is currently a WebView launch and a custom notification window to check the data. I am closing the notification window after checking the data. How do I forward data to a WebView page when I…
hong developer
  • 13,291
  • 4
  • 38
  • 68
2
votes
2 answers

gsutil rsync exclude patterns not working on Windows Powershell

I'm trying to copy files to a gs bucket using gsutil rsync in powershell, ignoring some file extensions, but I get the error saying that '.*.scss' is not a command: PS W:\> gsutil -m rsync -x ".*^.gz$^|.*^.scss$^|.*^.less$^|.*^.pdf$^|.*^.zip$" -d -r…
Enrico Dias
  • 1,417
  • 9
  • 21
2
votes
1 answer

Segmentation fault after trying to access a structure variable outside function

I have defined the structure variables are as follows; typedef struct { char basename[33]; /* [C] Name of the 'Base' Node */ int Cell_Dimension; /* [C] Cell Dimension */ Parameters *BParam; int …
2
votes
5 answers

Check If Parameter Was Passed To Function Without Checking Value

I'm not sure if this is possible in Python and I was wondering, is there any method for checking at runtime whether a parameter is passed to a Python function without doing some sort of check on the parameter value? def my_func(req, opt=0): …
ICW
  • 4,875
  • 5
  • 27
  • 33
2
votes
1 answer

What is the difference SSE and SSEUP in x86-64-psABI chapter 3.2.3?

In x86-64-psABI(https://github.com/hjl-tools/x86-psABI/wiki/x86-64-psABI-1.0.pdf), chapter 3.2.3, it defines some classes corresponding to AMD64 register. 1)What is the difference between SSE and SSEUP? SSEUP said "The class consists of types that…
Kevin_xie
  • 75
  • 1
  • 5
2
votes
2 answers

Passing an associative array as a parameter between packages

I've got two separate Oracle (v9.2) PL/SQL packages and I'm trying to pass an associative array (ie, index-by table) from a procedure in package1, as a parameter to a procedure in package2. Is this possible? I keep getting PLS-00306: wrong number…
2
votes
2 answers

What does [x]* mean in python function documention?

I want to specify a timeout parameter for urllib.request.urlopen in python 3. The docs say: urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, capath=None, cadefault=False, context=None) What does [timeout, ]* mean? I thought that…
falsePockets
  • 3,826
  • 4
  • 18
  • 37
2
votes
1 answer

Syntax error while executing a sql request with parameters in symfony?

I have a just simple problem I guess, I followed Symfony 4.3 documentation, and tried to do do exactly what they have done to execute a SQL request, but I get an error when passing parameters in the execute method, but I get no error while executing…
TaouBen
  • 1,165
  • 1
  • 15
  • 41
2
votes
3 answers

Measure runtime of start-process with parameters

I have a script that runs the following commands: $result = Start-Process -Wait -PassThru $proc $args I want to measure how long it takes. Based on this article, I am trying the following: $buildtime = measure-command -expression { $result =…
user736893