This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/4591] println function


------- Additional Comments From joshua dot i dot stone at intel dot com  2007-08-13 23:47 -------
I think it would be easy to generalize this into a set of print variants that
should cover just about anyone.  I propose adding two new suffix variants to
print-like statements: 'd' for delimited, and 'ln' (or perhaps just 'n') for
including a newline.  With 'd', the first parameter must be a string literal
that will delimit the rest of the arguments.  With 'ln', a newline is appended.
 Bare print() and sprint() would be extended to allow multiple arguments, which
just get printed one-after-the-other.

So the complete list of print statements would be:
  print, sprint, printf, sprintf, printd, sprintd,
  println, sprintln, printdln, sprintdln

We have a special case of print(@hist_*) -- I'll leave that as-is.

Any comments?  If there are no objections, I will implement this...

Josh

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4591

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]