Rosetta Code:Village Pump/Arrays: Difference between revisions

Content added Content deleted
(on inexact translations)
(Copy contents from Creating an Array)
Line 19: Line 19:


:Could you add to the task so that entries also state what the minimum index of an array is and whether or not this minimum index is changeable (and by what means). Some languages (Verilog and VHDL certainly), allow you to state the minimum and maximum index range in the variable definition and both or either may be zero negative or positive! --[[User:Paddy3118|Paddy3118]] 19:26, 30 July 2009 (UTC)
:Could you add to the task so that entries also state what the minimum index of an array is and whether or not this minimum index is changeable (and by what means). Some languages (Verilog and VHDL certainly), allow you to state the minimum and maximum index range in the variable definition and both or either may be zero negative or positive! --[[User:Paddy3118|Paddy3118]] 19:26, 30 July 2009 (UTC)

:: If the purpose is to combine the three tasks mentioned, then that could be done simply by copying the contents of [[Creating an Array]] into [[Arrays]]. Then just add two lines of code into each language example to assign and to retrieve a value. --[[User:PauliKL|PauliKL]] 11:45, 13 August 2009 (UTC)


I wonder though whether this site is suitable for providing generic translations or patterns that might be applied in any language to create or emulate a missing construct. For example, implementing static arrays using hashes or strings. ----[[Special:Contributions/66.245.151.131|66.245.151.131]] 04:39, 13 August 2009 (UTC)
I wonder though whether this site is suitable for providing generic translations or patterns that might be applied in any language to create or emulate a missing construct. For example, implementing static arrays using hashes or strings. ----[[Special:Contributions/66.245.151.131|66.245.151.131]] 04:39, 13 August 2009 (UTC)