expression Questions

6

Solved

What's the difference between those PHP if expressions!? if ($var !== false) { // Do something! } if (false !== $var) { // Do something! } Some frameworks like Zend Framework uses the latest...
Cassella asked 21/4, 2010 at 13:31

9

Solved

In C# is it guaranteed that expressions are evaluated left to right? For example: myClass = GetClass(); if (myClass == null || myClass.Property > 0) continue; Are there any languages tha...

3

Solved

I currently use C for numerical computations. I've heard that using C++ Expression Templates is better for scientific computing. What are C++ Expression Templates in simple terms? Are there book...
Domett asked 8/4, 2010 at 8:49

3

I want to evaluate one expression in C++. To evaluate it, I want the expression to be converted to prefix format. Here is an example wstring expression = "Feature1 And Feature2"; Here are poss...
Polymorphous asked 1/4, 2010 at 4:41

5

Solved

I had used several ways to do some simple integer arithmetic in BASH (3.2). But I can't figure out the best (preferred) way to do it. result=`expr 1 + 2` result=$(( 1 + 2 )) let "result = 1 + 2" ...
Prorate asked 25/3, 2010 at 17:7

3

Is anyone aware of an online resource where I can find out how to write a simple expression parser using Boost::Spirit?. I do not necessarily need to evaluate the expression, but I need to parse i...
Lowe asked 27/2, 2010 at 23:28

1

Solved

I have an Expression<Func<T,DateTime>> I want to take the DateTime part of the expression and pull the Month off of it. So I would be turning it into a Expression<Func<T,int>&g...
Elementary asked 4/3, 2010 at 7:14

4

Solved

It may sound a bit trivial but it actually is quite frustrating: Can anyone explain me this: [~:user$]expr 3 + 2 6 [~:user$]expr 3 / 2 1 [~:user$]expr 3 * 2 expr: syntax error When the man page...
Divulgence asked 31/1, 2010 at 10:14

7

Solved

I am writing an application that allows a user to enter a boolean expression. I need the ability to evaluate the entered boolean expression at runtime and am looking for both a parser and a express...
Placatory asked 18/2, 2010 at 20:33

2

Ok, here's a tricky one. Hopefully there is an expression guru here who can spot what I am doing wrong here, cause I am just not getting it. I am building up expressions that I use to filter queri...
Entry asked 20/1, 2010 at 22:26

2

Solved

I had a part of code that takes in lambda expressions at runtime, which I can then compile and invoke. Something thing; Expression<Action<Something>> expression = (c => c.DoWork())...
Administrative asked 20/1, 2010 at 19:53

3

I am trying to implement certain matrix operations but I am lost in the internals of ublas library. is there a resource such as tutorial or an example on how to implement new ublas matrix expressio...
Wintertime asked 17/1, 2010 at 1:12

3

Solved

I want regular expression for HH:MM:SS AM/PM here HH must be 1-12 only, MM must 60 min, SS as usual (60 sec.) I any have it properly ...?
Shuck asked 16/1, 2010 at 7:56

2

Solved

I wanna do something like that public IQueryable GetPaged<TSource>(IQueryable<TSource> query, int startIndex, int pageSize) { return GetSession() .Linq<TSource>() .UseQuery(...
Jansen asked 9/1, 2010 at 21:27

3

Solved

A few days back there was a discussion here about whether the expression i = ++i + 1 invokes UB (Undefined Behavior) or not. Finally the conclusion was made that it invokes UB as the value o...
Caftan asked 13/12, 2009 at 8:29

1

Solved

My system: Ubuntu 9.10. Eclipse 3.5.1 with Java EE 1.2.1 (manual install - NOT from synaptic). Web Developer Tools 3.1.1 I've recently adopted someone else's code (a Dynamic Web Project), and run ...
Amundson asked 24/11, 2009 at 15:20

2

Solved

Given: WHERE (@Id Is NULL OR @Id = Table.Id) If @Id is null: the expression evaluates to true. Does the second part @Id = Table.Id still get considered? or is it sufficient that the expression e...

4

Solved

Why is the expression specified inside a comma operator (such as the example below) not considered a constant expression? For example, int a = (10,20) ; when given in global scope yields an err...
Wakerobin asked 15/11, 2009 at 14:21

5

Solved

I have read several articles and several stackoverflow.com posts about expression tree. It is beating my brain to understand. Questions: 1) Like DOM (Document Object Model), it is an in-memory r...
Wilber asked 19/10, 2009 at 14:22

3

Solved

What exactly is Expression<> used for in C#? Are there any scenarios where you would instantiate Expression<>'s yourself as an object? If so, please give an example! Thank you!
Ostosis asked 15/9, 2009 at 5:27

1

Solved

I'm currently doing some last-measure optimizations, mostly for fun and learning, and discovered something that left me with a couple of questions. First, the questions: When I construct a metho...
Caespitose asked 18/8, 2009 at 21:39

1

Solved

As subject, how to combine two expressions into a single one for this case: Expression<Func<IEnumerable<T>, IEnumerable<T>>> exp1; Expression<Func<IEnumerable<T&gt...
Bimonthly asked 13/8, 2009 at 8:30

3

Solved

I have a method that accepts an Expression<Func<T, bool>> as a parameter. I would like to use it as a predicate in the List.Find() method, but I can't seem to convert it to a Predicate ...
Chloride asked 1/8, 2009 at 23:18

2

Solved

I want to create a query which has more than 3-4 Expression.Or ? But Expression.Or just let me to add two Expressions inside it. if (!string.IsNullOrEmpty(keyword)) query .Add(Expression.Or( Ex...
Eleanoraeleanore asked 12/1, 2009 at 0:51

3

Solved

I'm looking to tokenize Java/Javascript-like expressions in Javascript code. My input will be a string containing the expression, and the output needs to be an array of tokens. What's the best pra...
Ejective asked 22/5, 2009 at 17:30

© 2022 - 2024 — McMap. All rights reserved.