Maximum capacity of a TUPLE

14 views
Skip to first unread message

Colin Adams

unread,
Dec 7, 2015, 9:11:05 AM12/7/15
to eiffel...@googlegroups.com
The header comment to {TUPLE}.plus says the result can be Void if the result exceeds the capacity of a TUPLE. What is this maximum capacity? 
(without knowing it is is impossible to prove the result of such a concatenation will be attached).

Emmanuel Stapf

unread,
Dec 7, 2015, 5:41:51 PM12/7/15
to eiffel...@googlegroups.com

If you are looking at TUPLE with more than 20 entries, I think I would consider using LIST or ARRAY for storing data.

 

The issue is not so much on the TUPLE capacity (which has the same limit as a SPECIAL object) but on the number of class types any  type declaration. This is a limit for all types, not just for TUPLE. For example: HASH_TABLE[ TUPLE [LIST [ANY]], STRING] has 5 types. That number is the limiting factor in a type declaration and the runtime only handles at most 256 of them in a declaration.

 

Regards,

Manu

 

--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages