David,
I think originally the code for (x:foo) generated foo(x) but it was
reported as a bug as there exists no universal type conversion signature;
it did not work on table() etc. The code generator was modified to be more
conservative and only recognize built-in type names for which converter
functions exist.
We probably need to think about and decide the hard language design issues
before reinstating or extending the feature. :-) Clint
On Fri, Jul 20, 2012 at 1:08 PM, David Gamey <[email protected]> wrote:
> Hi folks,
>
> I was looking at how the Unicon pre-processor handles type specifications
> in procedures after Kim's report the other day.
>
> If you code:
> procedure P1(x:procedure)
>
> Then yyerror 294 is produced:
> "procedure" parameter modifier must be a (atomic) literal or a convertor
>
> The code in idol.icn, class argList, method coercions doesn't even get a
> chance to generate:
> (type(x)=="procedure") | runerr(x,106))
>
>
> Not sure if this was intended or a bug.
>
> David
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Unicon-group mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/unicon-group
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group