For Programmers: Free Programming Magazines  


Home > Archive > APL > January 2005 > Re: Distinguish primitive and defined functions inside an operator of APL2









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Distinguish primitive and defined functions inside an operator of APL2
David Liebtag

2005-01-14, 3:56 pm

Thmas,

I believe there is no way to accurately determine what function or which
primitive was used as an operand to a defined operator.

Furthermore, I also believe you can not code support for prototypes in
defined operators to effect their results when used with each, because each
does not actually call its operand for when an argument is empty. It
generates the result using the prototype of the argument without calling the
operand.

David Liebtag
IBM APL Products and Services



David Liebtag

2005-01-19, 3:56 am

Mike,

I don't believe primitives are called either. Instead, a fill function is
used. You can read about fill functions in the APL2 Programming: Language
Reference Manual, Chapter 4. General Information.

However, there is a deviation concerning each and fill functions in the
workstation interpreter. This is documented in the User's Guide, Deviations
Appendix, General Language Differences, Restrictions section.


David Liebtag



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com