17 questions
0 votes
1 answer
91 views
How can I use oracle variable binding within IN-keyword
I use variable binding in ORACLE with java/groovy like these: String sql = "SELECT * FROM myTable WHERE id = :id" sqlConnection.query(sql, [id: 111]) It works perfect. But when I try the ...
1 vote
2 answers
857 views
Defer, return and Argument evaluation in golang [duplicate]
package main import "fmt" // fibonacci is a function that returns // a function that returns an int. func fibonacci() func() int { a, b := 0, 1 return func() int { defer ...
7 votes
3 answers
355 views
What are the rules for re-binding?
[NOTE: I asked this question based on an older version of Rakudo. As explained in the accepted answer, the confusing output was the result of Rakudo bugs, which have now been resolved. I've left the ...
5 votes
1 answer
119 views
Should sigilless "variables" with type constraints be re-bindable? [duplicate]
[EDIT: closed in favor of https://stackoverflow.com/questions/69231506/what-are-the-rules-for-re-binding, which I formulated after more clearly understanding what I was trying to ask in this question.]...
2 votes
3 answers
305 views
Lexical vs Dynamic interpreter in Scheme language
I still do not understand how a dynamic interpreter differ from a lexical one. I am working on scheme and i find it very difficult to know how a simple code like these one works dynamically and ...
10 votes
1 answer
547 views
Can I bind multiple variables at once?
The following line declares a variable and binds it to the number on the right-hand side. my $a := 42; The effect is that $a is not a Scalar, but an Int, as can be seen by say $a.VAR.^name; My ...
-1 votes
1 answer
140 views
Python: function defined in while loop refers to old variable
I have a function that I define in a while loop that is called by code I do not control. In the following example, access() always returns the value 1. Why? And how can I make access() return the ...
0 votes
1 answer
59 views
Using bound argument name inside python function
My current hackish manner of printing multiple arrays in columns uses keyword arguments to label the output: def table(**data_dict): n=([len(x) for x in data_dict.values()]) # # data for each var ...
0 votes
1 answer
113 views
map php array keys explicitly to db columns (oracle)
I am passing data from PHP to sql in the form of arrays that look like below: var_dump($data); array( key_id => 'CLA-ARTCC'(length=9) key2 => 'ZLA'length=3) key3 => 'LOS ANGELES ...
1 vote
2 answers
329 views
Avoid Angular/TypeScript variable binding
I need to create a clone of my object, without creating it's reference. When I try to copy EquipmentClass, witch is my main object to it's clone, and if I change some property of EquipmentClass it ...
1 vote
0 answers
138 views
Eclipse JDT resolve binding not working with copy of ASTNode
I have a code where I am replacing a logical expression with its negated form. Like, replacing A || B with !A && !B. For this, I am using JDT ASTNode's copySubtree() function to make a copy of ...
10 votes
1 answer
79 views
Really binding an argument to a parameter? (Perl6)
The Perl6 docs state "By default, parameters are bound to their argument and marked as read-only." But running the following code: # Example 1 sub f1 ( $x ) { say $x.VAR.WHAT; say $x.WHAT; say $x } ...
0 votes
1 answer
326 views
Can't bind variable to string
I am new to angular and I am currently using Angular 7. I can't add the variable to data-link property. In my ts file I have a variable : export class PortfolioComponent implements OnInit { var ...
0 votes
1 answer
282 views
Variable binding using soci with PL/pgSQL
I'm using SOCI library to execute database queries on both Oracle and PostgreSQL databases. I got the following error : Cannot execute query. Fatal error. ERROR: bind message supplies 1 parameters, ...
5 votes
3 answers
9k views
angular 6 variable or method binding in *ngIf
Is there any difference between binding a variable and binding a method in template *ngIf. Ex: Case 1: <div *ngIf="myVar">ABC</div> Case 2: <div *ngIf="myFunction()">ABC</div&...