Frank Muldoon
2017-07-15 13:32:11 UTC
Hello all,
In order to reduce code replication I would like include some text into
a function. I have tried using "batch", "loadfile" and "batchload" but
have had no luck. What I am looking for is the equivalent of the
Fortran include function which inserts code into a file before any
compilation or evaluation of the file or code is carried out. I attach
a simple example.
Cheers,
Frank
--
Frank Herbert Muldoon, Ph.D. Mechanical Engineering
New Technologies and Service
27 Gzhatskaya street, room 205
Saint Petersburg
Russia, 195220
+79313075021 (cell)
ЀÑÑМк ХеÑбеÑÑ ÐалЎÑÐœ, к.Ñ.-ÐŒ.Ðœ.
ÐПвÑе Ð¢ÐµÑ ÐœÐŸÐ»ÐŸÐ³ÐžÐž О СеÑвОÑ
195220 г. СаМкÑ-ÐеÑеÑбÑÑг
Ñл. ÐжаÑÑкаÑ, ÐŽ. 27, кПЌМаÑа 205
+79313075021 (ЌПбОлÑÐœÑй)
fmuldoo (skype)
http://tetra.fluid.tuwien.ac.at/fmuldoo/public_html/webpage/frank-muldoon.html
In order to reduce code replication I would like include some text into
a function. I have tried using "batch", "loadfile" and "batchload" but
have had no luck. What I am looking for is the equivalent of the
Fortran include function which inserts code into a file before any
compilation or evaluation of the file or code is carried out. I attach
a simple example.
Cheers,
Frank
--
Frank Herbert Muldoon, Ph.D. Mechanical Engineering
New Technologies and Service
27 Gzhatskaya street, room 205
Saint Petersburg
Russia, 195220
+79313075021 (cell)
ЀÑÑМк ХеÑбеÑÑ ÐалЎÑÐœ, к.Ñ.-ÐŒ.Ðœ.
ÐПвÑе Ð¢ÐµÑ ÐœÐŸÐ»ÐŸÐ³ÐžÐž О СеÑвОÑ
195220 г. СаМкÑ-ÐеÑеÑбÑÑг
Ñл. ÐжаÑÑкаÑ, ÐŽ. 27, кПЌМаÑа 205
+79313075021 (ЌПбОлÑÐœÑй)
fmuldoo (skype)
http://tetra.fluid.tuwien.ac.at/fmuldoo/public_html/webpage/frank-muldoon.html