<Guest47>
Hi everyone! In Ruby, there’s a common idiom __FILE__ == $0 to check if a script is being executed directly, which lets you include test code in a library without affecting other code that uses it.
<Guest47>
Is there something similar in OpenSCAD? I’m looking for a way to include test or demo code in a library file, but only run it when the file is opened directly, not when it’s imported into a larger project.
<Guest47>
Thanks in advance!
mmu_man has quit [Remote host closed the connection]
mmu_man has joined #openscad
snaked has joined #openscad
<J25k73>
Guest47 no but you can use <use> or <include> while use will only give access to modules and functions without executing any other code
<J25k73>
on the other hand good plasma welder is now 100€
<stealth_>
i c, but its fiber laser though! you can't compare the quality and precession, it only the price went down alot, maybe in comping years when other competition jump on board it will get cheeper
<stealth_>
you should be able to build a better cnc setup for < 5k though, way better!!!
Guest19 has joined #openscad
<Guest19>
Thanks, J25k73 -- that's exactly what I needed!
Guest19 has quit [Quit: Client closed]
<J25k73>
stealth_ just checked amazon and for that price you already get fiber laser .. i am bit skeptical on kikstarter campaigns
mmu_man has quit [Ping timeout: 252 seconds]
<stealth_>
J25k73, ya, well that fiber laser tech has been out for many years now with all the feature, it wasn't as good of a weld when it first came out but now it looks like they improved it.
<stealth_>
with stuff like xtools, you just get the whole package! you know, tools, cnc, support, software and ease of use
<stealth_>
to me the Xlaserlab price seems more reasonable (for current market)