Questions tagged [function-calls]

Function (or method) calling is the act of using a function or a method.

Functions (or methods) are blocks of code.
They are there, ready to perform some action (a sequence of instructions, including the possibility of calling other functions - even themselves, which is called recursion).
If nobody calls them, the are useless (dead code).

351 questions
0
votes
1 answer

angularjs loops with function or method calls

Thanks for you help in advance. First of all I am a beginner to angularjs as such I am running in to what I hope is a trivial challenge. please let me know if I should change my approach. I am running it to a problem that I need help with. I am…
Natdrip
  • 1,144
  • 1
  • 11
  • 25
0
votes
2 answers

JavaScript: calling a function by string content, case insensitive?

I am calling a JavaScript function like this: window[className + 'Click'](); The className var contains some other string, in the end, it calls a function like myClick() or whatEverClick(). Thats alright, but is there a way to make the first part…
user1856596
  • 7,027
  • 10
  • 41
  • 63
0
votes
0 answers

Agent Not Getting Run

I think i am missing something in my project. I need agents to perform specific task that i assign. I am using JADE. Inside the action() i wrote a for loop to display numbers 1 to 10. While running no error is showing and also the loop is not…
Maximin
  • 1,655
  • 1
  • 14
  • 32
0
votes
1 answer

constructing ggplot calls based on the number of inputs automatically

I have tsv files all of them with one column and same number of rows. I am plotting them using ggplot (stat_smooth) but I would the program to be flexible meaning adding more stat_smooth function calls, based on how many files are provided as…
Sukhi
  • 826
  • 1
  • 8
  • 19
0
votes
3 answers

How to distinguishe declaration and use of a function?

I have the following structure in the code: while (x > 0) { something; aaa::bbb::ccc some_name( x, y ); } I cannot understand what aaa::bbb::ccc some_name(. If it is a call of function, why do we need to specify its…
Roman
  • 124,451
  • 167
  • 349
  • 456
0
votes
2 answers

Categorizing architectures based on calling features

There are different ways of calling functions: call stacks, continuation passing, messaging and event handling. What do you call the category of these features? Invocation? What do you call architectures categorized by these features? Invocation…
outis
  • 75,655
  • 22
  • 151
  • 221
0
votes
4 answers

Forward declaration of function messes up, saying args are undeclared identifiers

This is my code: mainheader.h void displaygrid(int (* _grid)[10][10] , string msg ); something.cpp #include #include "mainheader.h" void displaygrid(int (* _grid)[10][10], string msg = "" ) { //body goes here } Compiler says at line…
user1849353
  • 87
  • 1
  • 10
0
votes
1 answer

Symfony2 How is formBuilder function called?

Hi I am new to symfony2 and while I was reading the documentation I could not figure out how public function buildForm(FormBuilderInterface $builder, array $options) is called from within the TaskType class (in the example) using the helper…
idipous
  • 2,868
  • 3
  • 30
  • 45
0
votes
1 answer

bind function parameter to specific register

Can I make a gcc to place the specific function (C or C++) parameter to the specific register? I want to define the function prototype to use by some naked code, that exploits this register, say, as the base. I mean something like this, but towards…
Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
0
votes
2 answers

Java Object Oriented function calling between classes

I ma new in OOD and working on Academic project. I am facing a problem while programming it. The scenario is that I have a main class in which I have made an object of "login" class and call its function. Now in that "login" class function I create…
user1656168
0
votes
1 answer

Python : calling a function inside a while loop results in runaway recursion

I have written a Python function randomizer() that randomizes the lines from a file and then writes them to std output. On its own, it works without problems. Now I want to be able to iterate this process a user-defined number of times, so I…
Koldito
  • 169
  • 2
  • 6
0
votes
3 answers

Is it possible to postpone function call binds to runtime in Java?

Consider a simple case where I ask a user to select a fruit among 10 different fruits. Say the fruits are, apples, oranges, mangoes,... etc., If the user selects apples, I call apples(), if he selects mangoes, I call mangoes() and so on... To…
coder
  • 317
  • 1
  • 7
  • 20
0
votes
2 answers

Function calls from outside of $(document).ready to the function defined in the $(document).ready

I wanna use $(window).resize to call some function when a mobile device orientation change, I wrote all my code inside the $(document).ready, this works when I use an Android device, but with iPhone after first orientation is detected it doesn't…
Baris
  • 471
  • 6
  • 19
0
votes
1 answer

System call or function call - performance-wise

In Linux, when you can choose between a system call or a function call to do a task, which option is the better one due to a better performance?
user1243746
0
votes
2 answers

Structure parameter corrupted on function call

I'm having trouble tracking down the cause of strange behavior in passing a structure as a parameter. The structure in question, structFoo, has the following declaration: typedef struct _structFoo { int id; BSTR szDescription; VARIANT…
CJ McAllister
  • 291
  • 3
  • 10
  • 20