On 05/16/2017 02:47 PM, Stephen Barncard via use-livecode wrote:
On Tue, May 16, 2017 at 1:48 PM, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:
It took me three hours today to figure out how to convert a hex number
into decimal format.
Why? Because the IP is IPV6 ? Large hex number that overflows?
Nope. Because the way I would do this in LCS doesn't exist in LCB. The
LCB syntax is actually more intuitive, but getting to that point took
all morning. Having to read between the lines in the dictionary and make
guesses (educated and non) about the keywords and syntax.
I wasn't dealing with IP addresses, just converting #NNNNNN colors to
(DDD,DDD,DDD) format, two hex digits at a time. Along the way I
discovered interesting things like the fact that 'comma' isn't a defined
constant in LCB. And that there's no concept of word chunks in LCB.
And there's afaict no messagebox-style way to interactively try out the
possible syntax forms - you just have to write the code, try to compile
it, and then try to figure out why there's a syntax error.
--
Mark Wieder
ahsoftw...@gmail.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode