On Sat, May 5, 2012 at 9:33 AM, Matthew Woodward <[email protected]>wrote:

> getSpeeds = [];
> getSpeeds[1] = new m5();
> getSpeeds[2] = new ferrari();
>

Actually even more concise:
getSpeeds = [new m5(), new ferrari()];

:-)
-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to