expression Questions
2
Solved
I was reading this earlier answer which had a piece of C code I couldn't understand. It essentially looks like this:
if((int_1 += *pointer++ = int_2++) < int_3) continue;
I can break it down ...
Psychokinesis asked 15/3, 2017 at 21:23
2
Solved
The following code:
double c1 = 182273d;
double c2 = 0.888d;
Expression c1e = Expression.Constant(c1, typeof(double));
Expression c2e = Expression.Constant(c2, typeof(double));
Expression<Fun...
Terrorstricken asked 12/3, 2017 at 12:0
1
Completely rewriting this question since I understand more now than I did before.
I am attempting to abstract out the conversion of an OData query string directly to .NET expression tree. There ap...
Leclaire asked 17/10, 2016 at 15:10
5
Solved
Integer i = null;
if (i == 3)
Why the second line above throws a NullPointerException, IMHO, this has only one meaning which is Wrapper Object i is to be unboxed which yields the Exception such a...
Prerecord asked 7/2, 2012 at 14:1
4
As a follow up to this question, I have an expression such as this:['(', '44', '+(', '3', '+', 'll', '))'] which was created by using re.findall('\w+|\W+',item) method, however within this list of ...
Catto asked 19/2, 2017 at 22:50
2
Solved
I have employee table with bigint primary key field in database and entity data model with database first approach. Employee class have this structure
public partial class Employee
{
public long ...
Lonnylonslesaunier asked 8/2, 2017 at 6:51
6
Suppose the user inputs an infix expression as a string?
What could be the easiest ( By easiest I mean the shortest) way to evaluate the result of that expression using C language?
Probable ways a...
Bagnio asked 30/7, 2009 at 15:8
4
Solved
What is the right syntax to return TRUE if the field is not NULL and to return FALSE if it is NULL in TSQL?
SELECT -- here return TRUE if table.Code IS NOT NULL. And FALSE otherwise
FROM table
Vermillion asked 18/11, 2011 at 12:43
5
Solved
I am trying to shorten my code by using short-if:
int? myInt=myTextBox.Text == "" ? null :
Convert.ToInt32(myTextBox.Text);
But I'm getting the following error:
Type of conditional expression ...
Kalgan asked 11/11, 2012 at 10:25
3
Solved
I have tried different approaches and asked several specific questions regarding sub-problems of my requirement here. But my solution doesn't really work as expected, so I am taking a step back and...
Eal asked 16/12, 2016 at 15:21
6
Solved
In the expression a + b, is a guaranteed to be evaluated before b, or is the order of evaluation unspecified? I think it is the latter, but I struggle to find a definite answer in the standar...
Tetrad asked 18/8, 2011 at 18:28
1
Solved
For an arbitrary function
f <- function(x, y = 3){
z <- x + y
z^2
}
I want to be able take the argument names of f
> argument_names(f)
[1] "x" "y"
Is this possible?
Ber asked 16/11, 2016 at 19:7
4
Solved
The question Loading a PowerShell hashtable from a file? documents how to load a file that contains a hashtable in PSON format into a variable, but how does one save a hashtable to a file in PSON f...
Allegorical asked 28/2, 2013 at 15:37
1
Solved
In my Data Repository I have a base class and derived class as below.
public abstract class RepositoryBase<T> : IRepository<T> where T : EntityBase
{
public async Task<T> FindOne...
Upside asked 2/11, 2016 at 21:53
1
Solved
As stated in the documentation, this is not possible.
AND Queries With Multiple Expressions Specifying the Same Operator
Consider the following example:
db.inventory.find( {
$and : [
{ $or : [ {...
Amoakuh asked 2/11, 2016 at 19:55
1
In C the const qualifier makes an object read-only but not a constant expression. For example, it is not possible to use a const int variable to dimension an array:
const int n = 10;
int arr...
Scholem asked 15/10, 2016 at 18:34
2
Solved
Regarding the previous question which I have posted:
calculation the difference for same column for the specific rows in Spotfire
I have a new problem for it, below is the sample:
The new funct...
Andromada asked 27/9, 2016 at 12:59
1
Solved
I have a situation where in my where clause I have single predicate and expression. And both needs to be ANDed in where clause:
Expression<String> col1 = tableEntity.get("col1");
Expression&...
Deach asked 9/10, 2014 at 16:14
4
Solved
Why do both of the following return zero? Surely the second is a negation of the first? I am using SQL Server 2008.
DECLARE
@a VARCHAR(10) = NULL ,
@b VARCHAR(10) = 'a'
SELECT
CASE WHEN ( ( ...
Edgardoedge asked 13/9, 2016 at 13:23
2
Solved
Say I am debugging. Say I need to know what the value of [somevariable count]
How would I do so?
Capuche asked 25/4, 2011 at 14:24
11
Solved
What is the best way to evaluate any custom math expression, for example
3+sqrt(5)+pow(3)+log(5)
I know that embedding Python into C++ can do that; is there any better way?
Thanks!
Theall asked 25/2, 2011 at 10:1
2
Solved
I am trying to understand this code in Java 7 environment,
int T = getIntVal();
while (T--> 0) {
// do stuff here
}
T is not modified within the while loop. Can someone explain this co...
Draconian asked 25/8, 2016 at 17:0
1
Solved
Ok to set the context a little I am building up a dynamic Linq search clause using an expression tree using this class
public class HomeTableInvoice {
public int Sys_InvoiceID { get; set; }
publ...
Indies asked 24/8, 2016 at 8:36
1
I want to convert a string expression to a real boolean expression.
The expression below will be an input (string):
"(!A && B && C) || (A && !B && C) || (A &&a...
Klute asked 24/8, 2016 at 2:57
2
Solved
I'm trying to convert from Entity Framework to Dapper to hopefully improve data access performance.
The queries I use are in the form of predicates like so Expression<Func<TModel, bool>>...
Recliner asked 8/8, 2016 at 10:1
© 2022 - 2024 — McMap. All rights reserved.