Re: source blocks DAG evaluation

2021-03-22 Thread c4t0
Hello Thomas! That is fairly nice, thanks! I can use it for the moment. I see a minor problem, if you export it, the last block will show all the code and that may be redundant or undesired. But that can be solved fiddling with exporting options or code I guess. btw, using :noweb no-export, jus

Re: source blocks DAG evaluation

2021-03-21 Thread Thomas S. Dye
Aloha c4to, I would be tempted to use noweb expansion here. #+name: libB #+begin_src scheme :results none :noweb yes <> (define greetings (string-append hi ", " "to all the people!")) #+end_src #+begin_src scheme :session example :results output :noweb yes <> (display greetings) #+end_src Does

source blocks DAG evaluation

2021-03-21 Thread c4t0
Hi, Is it possible to have a dependency hierarchy of source blocks? i.e.: in C, if you use libA from a compilation unit and that library needs libB, you don't need to include it in main.c -> main.c #include "libB.h" -> libB.c #include "libA.h" you don't need to: -> main.c #include "libB.h" #