Trolltech Home | QSA-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

QSA-interest Archive, November 2006
print vs. System.print


Message 1 in thread

I noticed that there is a undocumented global function print()
available. It seems to work like the debug() function, e.g. writing
the expression immediately to stderr in a line, with the only
difference that there is not a "---> " printed before each line.

It is NOT the same as System.print() / System.println() where the
output is buffered at System.print() and the line is printed to stdout
at System.println().

My qustion is, since this global print() is very handy for writing
batch job output, will it stay available in future versions of QSA and
become documented some day?

-- 
 [ signature omitted ] 

Message 2 in thread

Seneca wrote:
> I noticed that there is a undocumented global function print()
> available. It seems to work like the debug() function, e.g. writing
> the expression immediately to stderr in a line, with the only
> difference that there is not a "---> " printed before each line.
> 
> It is NOT the same as System.print() / System.println() where the
> output is buffered at System.print() and the line is printed to stdout
> at System.println().
> 
> My qustion is, since this global print() is very handy for writing
> batch job output, will it stay available in future versions of QSA and
> become documented some day?

Its not a part of the the standards, but most java script interpreters 
actually provide this function. It will be available in the future as 
well, and I'll make a note to document it.

-
Gunnar

To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx


Message 3 in thread

Hello Gunnar,

While browsing through QSA source, I found another 2 global functions
which are yet undocumented. You might consider to document them too:

escape
unescape

Thanks,
Seneca.

You wrote at Freitag, 10. November 2006 10:15:

GS> Seneca wrote:
>> I noticed that there is a undocumented global function print()
>> available. It seems to work like the debug() function, e.g. writing
>> the expression immediately to stderr in a line, with the only
>> difference that there is not a "---> " printed before each line.
>> 
>> It is NOT the same as System.print() / System.println() where the
>> output is buffered at System.print() and the line is printed to stdout
>> at System.println().
>> 
>> My qustion is, since this global print() is very handy for writing
>> batch job output, will it stay available in future versions of QSA and
>> become documented some day?

GS> Its not a part of the the standards, but most java script interpreters 
GS> actually provide this function. It will be available in the future as 
GS> well, and I'll make a note to document it.

GS> -
GS> Gunnar

To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx


Message 4 in thread

Seneca wrote:
> Hello Gunnar,
> 
> While browsing through QSA source, I found another 2 global functions
> which are yet undocumented. You might consider to document them too:
> 
> escape
> unescape

Will do ;-)

-
Gunnar

To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx