Qore Programming Language Reference Manual
0.8.7
|
PO_INHERIT_USER_FUNC_VARIANTS
is now: PO_NO_INHERIT_USER_FUNC_VARIANTSPO_INHERIT_GLOBAL_VARS
is now: PO_NO_INHERIT_GLOBAL_VARSsource
and offset
information is present"source"
and "offset"
added for parse and runtime exceptions to allow for error-reporting to display information about files where sections of a source file are parsed; this allows both the label and line offset in the label and the file name and absolute file line position to be reported in exception information"us"
for microseconds (see Date Formatting Codes)"STARTTLS"
command when connecting to an ESMTP server; this way the class will automatically upgrade the connection to a secure TLS/SSL connection if the server supports it"esmtptls://user@password:smtp.example.com"
)"smtps"
scheme with a default port of 465%s
format argument)"Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))"
)if
expression is now evaluated as True: Previously (i.e. with %strict-bool-eval) the if
expression above would be evaluated as False because the string value was converted to an integer 0, however as of Qore 0.8.6 (with the default perl-bool-eval) it is True since the string is not empty; empty strings and string value "0"
are evaluated as False."00"
). In this case, the old logic would always return False, because the value was first converted to an integer 0
, whereas the new logic will return True. Note that in the case of a string with a single "0"
, both the old and new boolean logic returns False."0"
and empty strings, integer, float, and number 0
(zero), absolute date 1970-01-01Z
(ie the start of the epoch with an offset of 0), relative date 0s
(or any relative date with a 0 duration), NULL, empty binary objects, empty hashes, and empty lists. All other values are True. NUMERIC
(ie DECIMAL
or NUMBER
) column values when retrieved from databases by Qore DBI drivers that support the new capability DBI_CAP_HAS_NUMBER_SUPPORT (previously these values would be retrieved as Qore strings in order to avoid information loss).MyConcreteClass
is not abstract, whereas previously because the return types in the child class were not exact, MyConcreteClass
would be considered abstract by qore): "timezone"
option."key"
and "value"
, allowing for more convenient iteration with constructions that only use getValue()
methods (such as the foreach statement); to accommodate this, two new methods were added to the HashIterator base class:
"\n"
, "\r"
, or "\r\n"
; the last one only if the underlying file is not a TTY in order to avoid stalling I/O on an interactive TTY)"A"
and "a"
, (hexadecimal floating-point output) "G"
, "g"
, (compact floating-point output) "F"
, (non-scientific floating-point output) and "E"
and "e"
(scientific/exponential floating-point output) format arguments for floats and numbers (new arbitrary-precision number type values); see String Formatting"number"
instead of "string"
(see also sql_binding)"_"
characters in q-encoded headers were not encoded correctlyQOREADDRINFO-GETINFO-ERROR
exception description by adding information about the arguments passed"host"
output key for indicating that the ipv6 protocol be used"MON"
and "DAY"
, etc"type"
and "typename"
keys to the EVENT_HOSTNAME_RESOLVED event"type"
, "typename"
, and "address"
keys to the EVENT_CONNECTING event"arg"
key"class ::X::ClassName ..."
)"my int $i();"
)SOCKET-CLOSED
error when reading a HTTP header if no data is received"null"
for NOTHING with %y"\r"
as whitespace to allow better parsing of sources with Windows EOL markersstr =~ s/public (name)/$2/g