Difference between revisions of "Error Messages/43026"

 
Line 1: Line 1:
= Example Error Message =
+
[[Category: Error messages]]
  
:[[Repeated Parameter Forwarding|Repeated parameter forwarding]] is not supported with the [[Table]] function. So, for example, you cannot use <code>Table(...inds)</code>.
+
== Example error message ==
  
= Description =
+
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 +
Repeated parameter forwarding is not supported with the Table function.
 +
So, for example, you cannot use Table(...inds).
 +
</pre>
 +
 
 +
==Cause==
  
 
Although the index list of the table functions ([[Table]], [[IntraTable]], [[DetermTable]], [[ProbTable]] and [[MultiTable]]) is a repeated parameter, the feature called [[Repeated Parameter Forwarding]] is not supported for these functions.  
 
Although the index list of the table functions ([[Table]], [[IntraTable]], [[DetermTable]], [[ProbTable]] and [[MultiTable]]) is a repeated parameter, the feature called [[Repeated Parameter Forwarding]] is not supported for these functions.  
  
If the feature were supported, it would allow you to dynamically compute the dimensionality of an edit table using <code>Table(...inds)</code>, where «inds» is a variable or expression that computes a list of handles to indexes. The [[Table Splicing]] capability in Analytica is not capable of dealing with this, so [[Repeated Parameter Forwarding]] is not available in this particular case.
+
If the feature were supported, it would allow you to dynamically compute the dimensionality of an edit table using <code>Table(...inds)</code>, where «inds» is a variable or expression that computes a list of [[handle]]s to indexes. The [[Table Splicing]] capability in Analytica is not capable of dealing with this, so [[Repeated Parameter Forwarding]] is not available in this particular case.
  
The [[Array]] function does support [[Repeated Parameter Forwarding]], so <code>[[Array]](...inds,0)</code> does work, and might provide you with what you want.
+
The [[Array]] function does support [[Repeated Parameter Forwarding]], so <code>Array(...inds, 0)</code> does work, and might provide you with what you want.
  
= See Also =
+
==Remedy==
 +
Pass each (index) parameter separately to the [[Table]] function, or use the [[Array]] function.
  
 +
== See Also ==
 +
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
 +
* [[Function calls and parameters]]
 +
* [[Function_parameter_qualifiers#Repeated_parameters_.28....29|Repeated parameters]]
 
* [[Repeated Parameter Forwarding]]
 
* [[Repeated Parameter Forwarding]]
 +
* [[Arrays and Indexes]]
 +
* [[Array]]
 
* [[Table Splicing]]
 
* [[Table Splicing]]
 
* [[Table]]
 
* [[Table]]
Line 20: Line 32:
 
* [[MultiTable]]
 
* [[MultiTable]]
 
* [[ProbTable]]
 
* [[ProbTable]]
 +
* [[Handle]]
 +
</div>

Latest revision as of 21:05, 25 April 2016


Example error message

Repeated parameter forwarding is not supported with the Table function. 
So, for example, you cannot use Table(...inds).

Cause

Although the index list of the table functions (Table, IntraTable, DetermTable, ProbTable and MultiTable) is a repeated parameter, the feature called Repeated Parameter Forwarding is not supported for these functions.

If the feature were supported, it would allow you to dynamically compute the dimensionality of an edit table using Table(...inds), where «inds» is a variable or expression that computes a list of handles to indexes. The Table Splicing capability in Analytica is not capable of dealing with this, so Repeated Parameter Forwarding is not available in this particular case.

The Array function does support Repeated Parameter Forwarding, so Array(...inds, 0) does work, and might provide you with what you want.

Remedy

Pass each (index) parameter separately to the Table function, or use the Array function.

See Also

Comments


You are not allowed to post comments.