TPT TMP Variable

  • bimmo_devices
    21st Dec 2013 Member 0 Permalink

    Most of the experienced TPT players know of the TMP particle property. We know that it changes things like piston and cray range, pipe's contained element and many other things I'm sure. My question is: Why is it named TMP?! I have a very obscure theory: that it is a pun on the Windows TEMP and TMP temperary file paths (Both Temp and Tmp are particle properties). This is just too obscure to be the case. Also, if you know some other odd TPT naming patterns I would like to know.

  • jacob1
    21st Dec 2013 Developer 0 Permalink
    it stands for temporary. I have no idea what the first thing to ever need / use it is, but I doubt they expected it to be used in so many things now, maybe it was going to be removed after a while even ...

    At this point it's just an extra variable to store info in, some particles have a lot of state information to keep track of.
  • MiningMarsh
    21st Dec 2013 Member 0 Permalink

    @bimmo_devices (View Post)
    It is not really an odd TPT pattern, tmp is used everywhere. It is old enough that the original unix systems (and most modern unix (based) systems) adopted it for the temporary directory name (as they were trying to conserve bandwidth by abbreviating directory names, thus commands sent over the network using said directory would use less bandwidth. Also executables would be a bit smaller, but I don't know that that was a goal). That is just the earliest example I can think of, but I am sure you can find tmp littered all over early source code. And probably most modern source code.

     

    Also, typing tmp is so much easier then constantly typing temporary.