Questions tagged [binding]
33 questions
63
votes
8 answers
Why does C provide language 'bindings' where C++ falls short?
I recently was wondering when to use C over C++, and vice versa? Fortunately someone already beat me to it and although it took a while, I was able to digest all the answers and comments to that question.
However one item in that post keeps being…

smeeb
- 4,820
- 10
- 30
- 49
36
votes
8 answers
How can I write a set of functions that can be invoked from (almost) any programming language?
I'd like to find a way to write an API that can be accessed from any other programming language via language bindings (or some other framework). Is it possible to do this? If so, which programming language would be the most suitable for writing a…

Anderson Green
- 563
- 6
- 13
11
votes
6 answers
Why binding is not a native feature in most of the languages?
IMHO binding a variable to another variable or an expression is a very common scenario in mathematics. In fact, in the beginning, many students think the assignment operator(=) is some kind of binding. But in most of the languages, binding is not…

Gulshan
- 9,402
- 10
- 58
- 89
6
votes
3 answers
How to make support for bindings for a scripting language
Main
I'm making a scripting language using C++. I plan to use it with a simple test game editor. But I have to make a support for bindings to call game engine's nodes' methods to update positions, rotations, etc.
What are the main approaches for…

Dmitry K.
- 73
- 5
4
votes
1 answer
How to test model binding within an MVC controller when Bind attribute with Include list is used?
Auto-generated action methods in MVC5 make use of the BindAttribute with an Include list that contains the field names in a string literal.
Example:
// POST: MyTable/Edit/5
// To protect from overposting attacks, please enable the specific…

jk7
- 151
- 1
- 3
4
votes
1 answer
WPF properties memory management
I'm trying to build binding system similar to the one that is used in WPF and I ran into some memory leaking problems, so here comes my question - how is memory managed in WPF property system?
From what I know in WPF values of DependencyProperties…

zduny
- 2,623
- 2
- 19
- 24
4
votes
1 answer
Why does DrRacket IDE considers some identifiers as "symbols" and some as "keywords"? What is the difference?
Why does DrRacket (kind of Scheme) IDE highlights some of the identifiers as "keywords" (for example define, lambda, send*), and the others as "symbols" (user defined identifiers, +, -, abs, send, send+, etc.)?
I am particularly confused by the…

Alexey
- 932
- 7
- 19
4
votes
4 answers
In Scheme, what is formally a program's state?
I think i've understood more or less what a parsed Scheme program looks like (a binary tree with atomic values on the leaves, if i have understood correctly). Can anybody please define to me, or give a reference, what a state (or a computation) of…

Alexey
- 932
- 7
- 19
4
votes
1 answer
What's the difference between static and dynamic binding?
We are learning about methods in class, and I am having trouble especially with the concept of static vs. dynamic.
Wikipedia says this:
Methods can be bound to a class at compile time (static binding) or to an object at runtime (dynamic…

Dark Templar
- 6,223
- 16
- 46
- 46
3
votes
2 answers
How exactly does a program (executable image) and library (pre-compiled image) "link" together?
I know very well of the difference of static versus dynamic linking. What I want to know is, when linking statically (with a library like Winmm.lib on Windows), how does the linker "link" the pre-compiled format with the just compiled binary of the…
user93262
3
votes
1 answer
Is it possible to call a Javascript function from C?
I'd like to find a way to call Javascript functions from C. Are there any language bindings available for this purpose? I'm trying to make a library of Javascript functions accessible from C. (Something like a C -> Javascript foreign function…

Anderson Green
- 563
- 6
- 13
3
votes
3 answers
How do I improve my ability to manipulate code quickly, not wpm?
I have seen several questions on here about touch typing and words per minute but not about improving ones ability to manipulate text using keyboard shortcuts, bindings etc.
I have tried putting a cheat sheet of keyboard shortcuts next to my monitor…

Steve Moser
- 287
- 1
- 6
2
votes
1 answer
Can I legally publish my Fortran 90 wrappers to Nvidias' CUFFT library (from the CUDA SDK)?
From a legal standpoint (licensing issues), can I legally, in agreement with the license, publish Fortran 90 wrappers (bindings) to the CUFFT library from Nvidia CUDA Toolkit, under some open source license (either CC0, that is, public domain, or…

Jakub Narębski
- 149
- 4
2
votes
3 answers
What is late binding?
I know, there are lots of sources on the internet, but I do not understand them.
Wikipedia: "Late binding, dynamic binding, or dynamic linkage is a computer programming mechanism in which the method being called upon an object or the function being…

Jaroslav Tavgen
- 131
- 1
2
votes
1 answer
ADO.NET - Is it better to handle a combo box or label event, and where should the data be sourced from?
Context
I recently wrote a final exam that required using a BindingSource object with ADO.NET to populate a number of combo box and label controls from which the user could perform basic business functions. I got it working but had some reservations…

Skannen
- 23
- 4