2014-06-21 12:23 GMT+02:00 Benoît Minisini <gam...@users.sourceforge.net>:
> Le 21/06/2014 09:47, Patrik Karlsson a écrit : > > 3. I have a "BoolToIndex" function in a library module but I was thinking > > if it should not be part of the language, to be able to reference in > > a _simple_ way to an array element with a boolean. > > No. But you will be able to do Abs(True). > > Moreover, Boolean is, by definition, not a good datatype for indexing! > > Ok, that will be good too, thank you. In this case indexing on booleans gives me a nice and clean code where I have many 'either or' for loading the correct string value, sound clip and image. But I will keep that in mind. /Patrik ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user