Darwinbots Forum

General => Off Topic => Topic started by: PhiNotPi on February 20, 2014, 07:33:25 PM

Title: The Four "Forgotten" Operators
Post by: PhiNotPi 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).
Title: Re: The Four "Forgotten" Operators
Post by: Numsgil 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.
Title: Re: The Four "Forgotten" Operators
Post by: PhiNotPi 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."
Title: Re: The Four "Forgotten" Operators
Post by: Botsareus on February 21, 2014, 10:58:42 AM
Damn, Good one, I have missed that completely. Thx.
Title: Re: The Four "Forgotten" Operators
Post by: PhiNotPi 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.