expression Questions
3
Solved
How can I understand the parsing of expressions like
a = b+++++b---c--;
in C?
I just made up the expression above, and yes, I can check the results using any compiler, but what I want to know i...
Gauntlett asked 23/10, 2010 at 16:56
2
Solved
If I attempt to write two overloads of a method, one accepting an Expression<Func<T>> parameter and another accepting a Func<T>, I will get a compiler error on trying to call the ...
Nude asked 21/10, 2010 at 19:55
2
Solved
We use the Jeks parser at present to evaluate expressions. I cannot see a way to evaluate string expressions with it - for example:
IF( "Test 1" = "Test 2")
Is there anything ou...
Upper asked 30/9, 2010 at 15:47
8
Solved
int main() {
int i = -3, j = 2, k = 0, m;
m = ++i || ++j && ++k;
printf("%d %d %d %d\n", i, j, k, m);
return 0;
}
i thought that && has more precedence that || as per this log...
Bautista asked 12/10, 2010 at 15:16
1
Solved
I am trying to create the following dynamically, however I am having problems calling the extension method FirstOrDefault:
using(var context = new Entities())
{
var list = context.Engines.Inclu...
Scevo asked 7/10, 2010 at 20:13
2
Solved
I need to either call exec() or eval() based on an input string "s"
If "s" was an expression, after calling eval() I want to print the result if the result was not None
If "s" was a statement the...
Cindacindee asked 6/10, 2010 at 19:36
2
Solved
As per @Potatoswatter's suggestion, I have created a new discussion.
Reference is this response from @Potatoswatter
Given the code snippet,
int i = 3, &j = i;
j = ++ i;
The comment which...
Barnette asked 6/10, 2010 at 7:10
2
Solved
Trying to get an OrderBy on an IQueryable to work, not having much luck.
Here's my method:
public ICollection<T> FindAll<T>(Expression<Func<T,bool>> predicate, Expression&...
Defamation asked 30/9, 2010 at 7:21
8
Solved
Folks,
I'm looking to build a piece of PHP5 UI that I'm pretty sure is common to a bunch of applications. Basically, it's an expression builder that allows users to specify expressions combined t...
Bloodred asked 9/6, 2009 at 1:2
3
Solved
We know that int is a value type and so the following makes sense:
int x = 3;
int y = x;
y = 5;
Console.WriteLine(x); //says 3.
Now, here is a bit of code where we want to for lack of a better ...
Hebner asked 6/9, 2010 at 19:21
1
Solved
I am trying to create dynamic predicate so that it can be used against a list for filtering
public class Feature
{
public string Color{get;set;}
public string Weight{get;set;}
}
I want to b...
Smalt asked 7/8, 2010 at 18:49
2
Solved
When I was looking to the System.Linq.Expression capabilities (creating expression trees in code, compiling them, executing them) I was asking myself if this is possible for class creation as well ...
Burchell asked 31/7, 2010 at 12:11
1
Solved
I've got something like this (in Open Office Calc):
Streetname. Number
Streetname. Number a
etc.
Now I want to delete everything in front of the number.
So I need to do a search and replace I gu...
Doggish asked 31/7, 2010 at 7:43
3
Solved
The Python docs say that * and / have the same precedence.
I know that expressions in python are evaluated from left to right.
Can i rely on that and assume that j*j/m is always equal to (j*j)/m
av...
Rabon asked 25/7, 2010 at 6:54
2
I'm writing a program that needs to build syntax trees from expressions in prefix notation. What resources would you recommend I look into to learn about parsing expressions?
Pine asked 13/7, 2010 at 23:16
2
Solved
I am trying to create an expression that invokes an internal method, the internal method has an out parameter, is this possible?
public class Program
{
static void Main(string[] args)
{
var typ...
Rhonda asked 30/6, 2010 at 3:41
3
Solved
In IronPython is there any way to force the expression containing integer values to be calculated as floating point. For instance, I'd like the expression
1/3
to be evaluated as
1./3.
with ...
Hyoscyamine asked 26/6, 2010 at 19:12
6
Solved
Where does modulo come in the mathematical order of operation? I am guessing it is similar to division, but before or after?
Holtorf asked 24/6, 2010 at 21:44
2
Solved
I needed to filter a list of results using the combination of two properties. A plain SQL statement would look like this:
SELECT TOP 10 *
FROM Person
WHERE FirstName + ' ' + LastName LIKE '%' + @T...
Exploiter asked 29/5, 2010 at 21:46
1
Solved
I'm new to lambda expressions and looking to leverage the syntax to set the value of one property in a collection based on another value in a collection
Typically I would do a loop:
class Item
{
...
Fourposter asked 26/5, 2010 at 19:5
2
Solved
You can use Lambda Expression Objects to represent a lambda as an expression.
How do you create a Lambda Expression Object representing a generic method call, if you only know the type -that you u...
Istic asked 17/5, 2010 at 15:15
3
Solved
I'm using jQuery. I have a string with a block of special characters (begin and end). I want get the text from that special characters block. I used a regular expression object for in-string findin...
Fontainebleau asked 13/5, 2010 at 3:46
1
Solved
Well I have a string now that has the expression value to be evaluated..it has say value expr => expr.FieldName ... so I want to use this string as Linq. Expression or any other way to query...l...
Diantha asked 6/5, 2010 at 18:21
1
In OCaml 3.11, I want to "extend" an existing module using the include directive, like so:
module MyString = struct
include String
let trim s = ...
end
No problem. But now I want to expose thi...
Transcendental asked 5/5, 2010 at 21:0
7
I have a problem using Linq to order a structure like this :
public class Person
{
public int ID { get; set; }
public List<PersonAttribute> Attributes { get; set; }
}
public class PersonA...
Lukey asked 30/3, 2009 at 3:18
© 2022 - 2024 — McMap. All rights reserved.