It is an interesting idea. I guess the question is which are the
functions that make the most sense.
Your two examples: Now() and createUUID() are quite logical and I can
see where they could be used in a lot of places. I wonder what else
might make sense?
dw
On 9/22/06, Jared Rypka-Hauer <[EMAIL PROTECTED]> wrote:
I just talked to Chris about this and he suggested I post
it to the list to see what sort of response it gets... "run
it up the flagpole and see who salutes" I guess. ;)
I'm thinking that it would be very handy sometimes to use
CF-native functions in the XML as arguments to property or
constructor-arg tags... like this:
<property name="inputArray">
<value>$${listToArray("1,2,3,4,5")}</value>
</property>
The $${} would work like the $${} syntax does in CFE
snippets... except that asking for user input, CS would ask
CF to evaluate whatever lies between { and }. There are
various times when this would be handy, especially since it
could be used like this:
<value>myString_$${createUUID()}</value>
It may need to be restricted by what's returned from
getFunctionsList() (if that actually works right these
days, cuz once upon a time it didn't)... otherwise you
might end up with people doing things like this:
<value>$${this.getSomeProperty()}</value>
<value>$${session.userId}</value>
The main reason I asked was because I wanted to do
something like this:
<constructor-arg name="LogFileName">
<value>MyObjectResultLog_$${now()}</value>
</constructor-arg>
Just a thought... don't worry about shooting it down if you
don't like it, it's no big deal.
Laterz,
J
--
"Come to the edge, he said. They said: We are afraid. Come to the
edge, he said. They came. He pushed them and they flew."
Guillaume Apollinaire quotes