Coder Social home page Coder Social logo

Comments (3)

pieterderycke avatar pieterderycke commented on July 28, 2024

This seems to be bug related to casing. I have already done the analysis and it is only occurring when you construct a Func accepting a dictionary. When the calculate is called directly on the CalculationEngine object, the bug is not occurring.

CalculationEngine engine = new CalculationEngine();

Dictionary<string, double> variables = new Dictionary<string, double>();
variables.Add("var1", 2);
variables.Add("otherVariable", 4.2);

double result = engine.Calculate("var1+2/(3*otherVariable)", variables);

I will do the necessary modifications to fix the bug and release it as part of version 0.8.4. Currently, all variables in Jace should be case insensitive. Should I also add an option to make them case sensitive? Or are case insensitive variables sufficient for you?

from jace.

jjneuhart avatar jjneuhart commented on July 28, 2024

Pieter,

I don't really see a need for case sensitivity, at least on the project
that I am working on. Thanks for fixing the bug, and thanks for all of
your great work.

Jordan Neuhart

On Mon, Dec 9, 2013 at 12:05 AM, Pieter De Rycke
[email protected]:

This seems to be bug related to casing. I have already done the analysis
and it is only occurring when you construct a Func accepting a dictionary.
When the calculate is called directly on the CalculationEngine object, the
bug is not occurring.

CalculationEngine engine = new CalculationEngine();
Dictionary<string, double> variables = new Dictionary<string, double>();variables.Add("var1", 2);variables.Add("otherVariable", 4.2);
double result = engine.Calculate("var1+2/(3*otherVariable)", variables);

I will do the necessary modifications to fix the bug and release it as
part of version 0.8.4. Currently, all variables in Jace should be case
insensitive. Should I also add an option to make them case sensitive? Or
are case insensitive variables sufficient for you?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-30107471
.

email: [email protected]
cell: 402-217-1377

from jace.

pieterderycke avatar pieterderycke commented on July 28, 2024

Jordan,

Jace 0.8.4 has been released. It fixes your bug.

Kind regards,
Pieter

Date: Mon, 9 Dec 2013 06:57:56 -0800
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Jace] Issue with variable case sensitivity (#1)

Pieter,

I don't really see a need for case sensitivity, at least on the project

that I am working on. Thanks for fixing the bug, and thanks for all of

your great work.

Jordan Neuhart

On Mon, Dec 9, 2013 at 12:05 AM, Pieter De Rycke

[email protected]:

This seems to be bug related to casing. I have already done the analysis

and it is only occurring when you construct a Func accepting a dictionary.

When the calculate is called directly on the CalculationEngine object, the

bug is not occurring.

CalculationEngine engine = new CalculationEngine();

Dictionary<string, double> variables = new Dictionary<string, double>();variables.Add("var1", 2);variables.Add("otherVariable", 4.2);

double result = engine.Calculate("var1+2/(3*otherVariable)", variables);

I will do the necessary modifications to fix the bug and release it as

part of version 0.8.4. Currently, all variables in Jace should be case

insensitive. Should I also add an option to make them case sensitive? Or

are case insensitive variables sufficient for you?

Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-30107471

.

email: [email protected]

cell: 402-217-1377


Reply to this email directly or view it on GitHub.

from jace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.