Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# Wrapper #42

Open
2 tasks
OneManEquipe opened this issue Aug 31, 2021 · 0 comments
Open
2 tasks

C# Wrapper #42

OneManEquipe opened this issue Aug 31, 2021 · 0 comments

Comments

@OneManEquipe
Copy link
Collaborator

Guys, seriously, this is unacceptable:

var lang = new Language.Language();
var v = AITools.Logic.Utils.VarExprSource(lang);
var c = AITools.Logic.Utils.ConstExprSource(lang);

var IsA = c["IsA"];
var dylan = c["dylan"];
var cat = c["cat"];

var expr = Utils.makeExpr(new Expression[]{IsA, dylan, cat});

What I want is something like this:

var lang = new Language.Language();
var v = new MagicVarExprSource(lang);
var c = new MagicConstExprSource(lang);

var IsA = c.IsA;
var dylan = c.dylan;
var cat = c.cat;

var expr = IsA(dylan, cat);

So... yeah.

  • make the example above possible
  • define implicit conversions, if necessary, so that IsA, dylan and cat can be of some magical C# class that can be converted to the real logic type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant