D's string mixins are like Tcl's uplevel

Ali Çehreli acehreli at yahoo.com
Tue Apr 17 19:39:54 UTC 2018


I came across this Tcl advocacy article on Reddit (the article is from 
2006):

 
https://www.reddit.com/r/programming/comments/8cw63d/tcl_the_misunderstood/

"Everything is a string" concept of Tcl reminded me of how D can 
generate code as string. So, Tcl's 'uplevel' is like string mixins. It's 
also similar to how body of 'static if' is inserted into this context.

Ali


More information about the Digitalmars-d mailing list