Hi Bill, this isn't new syntax. For more info see pp 369 (pp = pickaxe page) or http://www.rubycentral.com/book/ref_c_string.html#String._pc Regards, Pit On 2 Oct 2002, at 22:22, William Djaja Tjokroaminata wrote: > Hi, > > As Ruby already has "sprintf", is this new syntax just a shortcut for > sprintf, or is it supposed to behave differently (just like the > discussion of to_flt vs. to_f)? > > Also, in > > "format_strings" % tokens_of_more_than_one_objects > > what will be the syntax for tokens_of_more_than_one_objects? Will > parentheses be optional? Will it be able to take an array? The > reason I ask is because in Python tokens_of_more_than_one_objects must > be a tuple, which Ruby does not have. > > Regards, > > Bill > ====================================================================== > ===== GOTO Kentaro <gotoken / notwork.org> wrote: > At Wed, 2 Oct 2002 > 12:01:34 +0900, > William Djaja Tjokroaminata wrote: > > >> Is this syntax '"%f" % obj' new to Ruby? This is something that is > >> borrowed straight from Python, isn't it? > > > Yes, it is. > > > > Gotoken > >