I get the error

Invalid argument: 'now()' is not assignable, which is required for reference argument

for the following template element:

<pubDate>output(now())</pubDate>

Not clear why output should have a reference argument. It would be expected that output is call by value.

Submitted by Eelco Visser on 7 February 2011 at 11:25

On 7 February 2011 at 12:00 Danny Groenewegen commented:

The reference argument is used to be able to retrieve the format annotation from the data model in e.g. output(p.pubDate).


On 7 February 2011 at 12:03 Eelco Visser commented:

But the value may not come from a data model!


On 7 February 2011 at 12:09 Danny Groenewegen commented:

Indeed, that’s why the issue is still open. Fixing this probably requires supporting overloading between Ref and Date, currently the Ref-information is stripped before overload resolving.

Log in to post comments