We are trying to avoid opcodes that start with a, i, or k; I guess we ought to avoid f as well but that is less a problem We do not have a simle alias system. One could map "array" to "fillarray" in the lexer but that would not avoid the opcode name problem nd ould give even more misleading error messages. btw I think the i-array suggestions you made are nearly all implemented. slicing a string array needs thought/time but arithmetic etc shoud ork in develop, As ever it needs some tests for which have not yet had time ==John ff Quoting joachim heintz : > or, as a positive question: > could array be an alias for fillarray? > > thanks - > j > > > Am 15.04.2014 22:57, schrieb joachim heintz: >> why is it deprecated? >> >> >> Am 14.04.2014 23:52, schrieb jpff@cs.bath.ac.uk: >>> array is a deprecated opcode so it is silly to extend it >>> >>> Quoting joachim heintz : >>> >>>> i checked, and indeed fillarray works for strings, but not array: >>>> SArr[] array "a", "b", "c" >>>> error: Unable to find opcode entry for 'array' with matching argument >>>> types: >>>> Found: S[] array SSS >>>> >>>> i had no idea this could happen; i thought they were aliases. >>>> >>>> yes, lenarray works! >>>> >>>> nice to see things are on the way. yesterday i saw that maxarray is >>>> already working for i-arrays, but not minarray. this is probably easy to >>>> add, i suppose. >>>> >>>> joachim >>>> >>>> >>>> >>>> Am 14.04.2014 20:39, schrieb jpff@cs.bath.ac.uk: >>>>> As far as I am aware fillarray works with strings and has for some >>>>> time; can you confirm it does not? >>>>> . >>>>> Also lenarray works on string arrays as I read it -- please confirm >>>>> that it does not >>>>> >>>>> I have not looked at the others >>>>> >>>>> Quoting joachim heintz : >>>>> >>>>>> hi steven - >>>>>> >>>>>> thanks for the interesting reply, and sorry for being >>>>>> overwhelming ... =) >>>>>> >>>>>> yes, with pleasure -- i have created a ticket on github. >>>>>> >>>>>> all best - >>>>>> >>>>>> joachim >>>>>> >>>>>> >>>>>> Am 14.04.2014 20:09, schrieb Steven Yi: >>>>>>> Sorry I haven't replied, I think it was a little overwhelming! ;) >>>>>>> >>>>>>> I read through briefly and it looks like some of these can be >>>>>>> addressed by rewriting some of the opcodes (i.e. slicearray) to use >>>>>>> generic types instead of hardcoded ones (i.e. change the definition >>>>>>> from k[] to .[] in the arg handling). >>>>>>> >>>>>>> As it is now, we have . as a catch all. It works but it has holes in >>>>>>> its mechanism. I think we should improve the type system to have type >>>>>>> variables, such as: >>>>>>> >>>>>>> [] slicearray []ii >>>>>>> >>>>>>> where would be some type, and everywhere that is used would be >>>>>>> of the same type. (I'm not in love with the <> notation, but it does >>>>>>> remind me of generics in Java/C++.) This kind of thing might not be >>>>>>> necessary as of yet, but something to keep in mind I think. >>>>>>> >>>>>>> For something like the i[] + i[] issue, that's curious as we could >>>>>>> make that generic as well. I.e. there would be a generic sum opcode >>>>>>> defined that would take in two arrays, then find the sum opcode that >>>>>>> matches the types of scalar value type, then call that for each >>>>>>> element within each i[]. So if i[] + k[] was found, the generic sum >>>>>>> could look for an opcode that has "ik" as it's arguments. (I know >>>>>>> somewhere someone is going to say something related to monads... :P ). >>>>>>> >>>>>>> As we're scheduled to do a release sometime this coming weekend, I'm >>>>>>> not sure we'll have time to put this into the 6.03.0 release. Let's >>>>>>> not lose track of all this though. >>>>>>> >>>>>>> Joachim: could you file this in the github tracker? Maybe you can >>>>>>> just file one large ticket with the contents of your original post. >>>>>>> One of us can tackle it after 6.03 goes out the door. >>>>>>> >>>>>>> Thanks! >>>>>>> steven >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Sun, Apr 13, 2014 at 5:24 PM, Askwazzup >>>>>>> wrote: >>>>>>>> Would love to react, but i just learned about arrays a week, >>>>>>>> or two ago. >>>>>>>> Seems like something i will probably need in the future, so Salute! >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> View this message in context: >>>>>>>> http://csound.1045644.n5.nabble.com/array-feature-wish-list-I-tp5734040p5734210.html >>>>>>>> Sent from the Csound - Dev mailing list archive at Nabble.com. >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------ >>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book >>>>>>>> "Graph Databases" is the definitive new guide to graph databases >>>>>>>> and their >>>>>>>> applications. Written by three acclaimed leaders in the field, >>>>>>>> this first edition is now available. Download your free book today! >>>>>>>> http://p.sf.net/sfu/NeoTech >>>>>>>> _______________________________________________ >>>>>>>> Csound-devel mailing list >>>>>>>> Csound-devel@lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> Learn Graph Databases - Download FREE O'Reilly Book >>>>>>> "Graph Databases" is the definitive new guide to graph >>>>>>> databases and their >>>>>>> applications. Written by three acclaimed leaders in the field, >>>>>>> this first edition is now available. Download your free book today! >>>>>>> http://p.sf.net/sfu/NeoTech >>>>>>> _______________________________________________ >>>>>>> Csound-devel mailing list >>>>>>> Csound-devel@lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Learn Graph Databases - Download FREE O'Reilly Book >>>>>> "Graph Databases" is the definitive new guide to graph >>>>>> databases and their >>>>>> applications. Written by three acclaimed leaders in the field, >>>>>> this first edition is now available. Download your free book today! >>>>>> http://p.sf.net/sfu/NeoTech >>>>>> _______________________________________________ >>>>>> Csound-devel mailing list >>>>>> Csound-devel@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Learn Graph Databases - Download FREE O'Reilly Book >>>>> "Graph Databases" is the definitive new guide to graph databases >>>>> and their >>>>> applications. Written by three acclaimed leaders in the field, >>>>> this first edition is now available. Download your free book today! >>>>> http://p.sf.net/sfu/NeoTech >>>>> _______________________________________________ >>>>> Csound-devel mailing list >>>>> Csound-devel@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Learn Graph Databases - Download FREE O'Reilly Book >>>> "Graph Databases" is the definitive new guide to graph databases and their >>>> applications. Written by three acclaimed leaders in the field, >>>> this first edition is now available. Download your free book today! >>>> http://p.sf.net/sfu/NeoTech >>>> _______________________________________________ >>>> Csound-devel mailing list >>>> Csound-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Csound-devel mailing list >>> Csound-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel >> > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net