When I was working on the logarithm project, I checked out how people were handling these in other languages. Along the way, I noticed three commands in the Basic Stamp language and wrote my own versions to implement these, for testing purposes. But as it turns out, I think they might be extremely handy to add to Great Cow Basic at the low level (for maximum efficiency), and especially if they were overloaded to handle the various data types. Anyway, here they are:
You be able to create << and >> operators by some clever thinking by using a #define and changing from a function to a sub. This is just a thought - it may not be practical.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I was working on the logarithm project, I checked out how people were handling these in other languages. Along the way, I noticed three commands in the Basic Stamp language and wrote my own versions to implement these, for testing purposes. But as it turns out, I think they might be extremely handy to add to Great Cow Basic at the low level (for maximum efficiency), and especially if they were overloaded to handle the various data types. Anyway, here they are:
For the last one, it would be nice to code the parser to recognize it as the operator >>, just to match most other languages.
Nice.
You be able to create << and >> operators by some clever thinking by using a #define and changing from a function to a sub. This is just a thought - it may not be practical.