-
- Downloads
Rework CFunction arguments treatment
It now uses FunctionArgumentConverter and ASTNodeDataTypeFlattener. This leads to a more consistent implementation and use of CFunction along with FunctionExpression. Now one can write `` import math; let x_and_3: R->R*R, x->(x,3); R x = pow(x_and_3(2)); `` the novelty is that `pow` acts (has one could expect) as a `R*R->R` function expression which makes is more natural (even if this example may not show its relevance)
Showing
- src/language/ASTNodeCFunctionExpressionBuilder.cpp 38 additions, 28 deletionssrc/language/ASTNodeCFunctionExpressionBuilder.cpp
- src/language/ASTNodeCFunctionExpressionBuilder.hpp 8 additions, 3 deletionssrc/language/ASTNodeCFunctionExpressionBuilder.hpp
- src/language/node_processor/CFunctionProcessor.hpp 16 additions, 27 deletionssrc/language/node_processor/CFunctionProcessor.hpp
Please register or sign in to comment