Hi, Dag Sverre Seljebotn wrote: > Dag Sverre Seljebotn wrote: >> When it comes to FlattenInListTransform, I was thinking about something >> along the lines of an "StatAsExprNode", which would be sort of the >> inverse of ExprStatNode: It would contain a block which could contain >> "ReturnFromStatAsExprNodeNode" (though a better name is needed :-)) >> which would yield the value of the statement list, evaluated as an >> expression. >> > Actually, "SetBlockResultNode" could give the same power, it just > requires that the transforms write code without "gotos". But it would be > much easier to implement.
Or the other way round, i.e. allow injecting preparatory statements into an expression that will be generated before generating the actual evaluation code of the ExprNode itself. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
