Extract code of function

Dennis dkorpel at gmail.com
Sun May 26 18:21:23 UTC 2019


On Sunday, 26 May 2019 at 18:14:23 UTC, Jacob Carlborg wrote:
> No, that's not possible.

Some hacky solutions are possible by importing a source file as a 
string and parsing it manually. dglsl actually extracts D 
function code to put into glsl shaders. Here's the snippet. See: 
https://github.com/icecocoa6/dglsl/blob/master/source/dglsl/translator.d#L140



More information about the Digitalmars-d-learn mailing list