Skip to main content
0 votes
1 answer
91 views

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 ...
Steffen S's user avatar
1 vote
2 answers
857 views

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 ...
likecs's user avatar
  • 363
7 votes
3 answers
355 views

[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 ...
codesections's user avatar
  • 9,630
5 votes
1 answer
119 views

[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.]...
codesections's user avatar
  • 9,630
2 votes
3 answers
305 views

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 ...
Developper zaid's user avatar
10 votes
1 answer
547 views

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 ...
Nikola Benes's user avatar
  • 2,801
-1 votes
1 answer
140 views

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 ...
2080's user avatar
  • 1,437
0 votes
1 answer
59 views

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 ...
exigenthesed's user avatar
0 votes
1 answer
113 views

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 ...
Lieutenant Dan's user avatar
1 vote
2 answers
329 views

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 ...
Felipe Thomé's user avatar
1 vote
0 answers
138 views

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 ...
Rafid ul islam's user avatar
10 votes
1 answer
79 views

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 } ...
ozzy's user avatar
  • 785
0 votes
1 answer
326 views

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 ...
Ghada Rahhal's user avatar
0 votes
1 answer
282 views

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, ...
Amith Chinthaka's user avatar
5 votes
3 answers
9k views

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&...
Yashavanta Byagawadi's user avatar

15 30 50 per page