Author Topic: The Four "Forgotten" Operators  (Read 3416 times)

Offline PhiNotPi

  • Bot Builder
  • **
  • Posts: 64
    • View Profile
The Four "Forgotten" Operators
« on: February 20, 2014, 07:33:25 PM »
I recently rediscovered four forgotten operators in Darwinbots.  They are clear, drop, swap, and over.  Why do I call these the forgotten operators? Because there was no reference to them anywhere on the wiki.  Anywhere.  Absolutely no mention or documentation.

The wiki had entries for clearbool, dropbool, etc. for the Boolean stack, but it did not list their integer stack equivalents.  These forgotten operators seem fully functional, and I have no clue why they were not listed anywhere.  They seem very useful.

Anyways, I created a category of operators on the wiki called "Stack Operators" which includes clear, clearbool, drop, dropbool, etc (6 pairs in total).
I am biased neither towards nor against any single mathematical constant.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: The Four "Forgotten" Operators
« Reply #1 on: February 21, 2014, 01:05:29 AM »
Good job :)  I suspect it was something Eric added, and he probably documented it in a forum post but not on the wiki.

Offline PhiNotPi

  • Bot Builder
  • **
  • Posts: 64
    • View Profile
Re: The Four "Forgotten" Operators
« Reply #2 on: February 21, 2014, 07:01:44 AM »
I haven't really found any reference to them on the forum either.  "Swap," for example, I only found in a robot's DNA.  "Over" just returned results about "overflow."
I am biased neither towards nor against any single mathematical constant.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: The Four "Forgotten" Operators
« Reply #3 on: February 21, 2014, 10:58:42 AM »
Damn, Good one, I have missed that completely. Thx.

Offline PhiNotPi

  • Bot Builder
  • **
  • Posts: 64
    • View Profile
Re: The Four "Forgotten" Operators
« Reply #4 on: February 22, 2014, 07:23:10 PM »
Also, I found that the operators dupint dropint swapint clearint overint are functional, and are just different names for the same operators.
I am biased neither towards nor against any single mathematical constant.