Rosetta Code:Village Pump/Suggest a programming task: Difference between revisions

Content added Content deleted
(→‎Recently Completed: removed old ones)
(→‎General: VARIANT /= varying type)
Line 23: Line 23:
* optional arguments (defining a procedure which has optional arguments or arguments with default values)
* optional arguments (defining a procedure which has optional arguments or arguments with default values)
* Type-variant variables in type-safe languages. (i.e. [http://msdn.microsoft.com/en-us/library/ms221258(VS.80).aspx Microsoft's VARIANT].)
* Type-variant variables in type-safe languages. (i.e. [http://msdn.microsoft.com/en-us/library/ms221258(VS.80).aspx Microsoft's VARIANT].)
: ''Type-variant'' rather suggests dynamic polymorphism, i.e. when the specific type of the value (and the value itself) depends on the type tag of the object. MS VARIANT is rather a different thing. It is a union, a container type which content depends on the value of the constraint. This is also a form polymorphism, but different, a dynamically constrained type. The type of the object does '''not''' vary. A similar case represents unbounded array, which size depends on the actual bounds (the constraint). (Granted, MS VARIANT serves the purpose of dynamic polymorphism, but that is merely because MS wished to keep it conform to non-[[object-oriented|OO]] languages.) --[[User:Dmitry-kazakov|Dmitry-kazakov]] 13:24, 9 April 2009 (UTC)
* [[wp:Miller-Rabin_test|Miller-Rabin test]]
* [[wp:Miller-Rabin_test|Miller-Rabin test]]
===Database / Network===
===Database / Network===