repeating string

Geoff Canyon gcanyon at gmail.com
Sun Feb 9 00:41:09 EST 2014


On Wed, Feb 5, 2014 at 9:06 AM, Mike Kerner <MikeKerner at roadrunner.com>wrote:

> put 30 "a" into goop, but that is a recipe for failure, and
> put 30 "a"'s into goop is almost unreadable
>

If we're devising syntax, I think some other languages use * as in:

put 30 * "a" into goop

This still runs into problems because of LC's typeless variables:

put 5 * 15 -- puts 75
put 5 * "15" -- puts 1515151515
put 15 into x
put 5 * 15 -- puts 75
put "15" into x
put 5 * 15 -- still puts 75, nor should it change

Perhaps "of"?

put 5 of 15 -- puts 1515151515



More information about the use-livecode mailing list