Author: | Loryn Jenkins |
---|---|
Mode: | factor |
Date: | Wed, 6 Mar 2013 20:44:18 |
! What is the difference between declaring something in a module versus declaring it in scratchpad? ! In scratchpad, I defined this: : palindrome-num? ( x -- ? ) present palindrome? ; 1000 palindrome-num? f 1001 palindrome-num? t ! So, I defined the same thing in a module: : palindrome-number? ( x -- ? ) present palindrome? ; ! scratchpad: 1000 palindrome-number? t 1001 palindrome-number? t ! Why would the two words return different results simply because of where they are defined?