Changes between Version 18 and Version 19 of AllOfCobraInOnePage
- Timestamp:
- 01/10/14 06:59:27 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AllOfCobraInOnePage
v18 v19 62 62 var bytes as uint8[] 63 63 def toWavPacket as WavPacket 64 wavBytes = Mp3Utils.decode(.bytes) 65 # methods without arguments, getters and somevariables are accessed uniformly, with a '.' before their name.66 #local variablesdon't have the dot.64 wavBytes = Mp3Utils.decode(.bytes) # '.decode' is a shared (static) method. '.bytes' is a class variable. 65 #methods without arguments, getters and public variables are accessed uniformly, with a '.' before their name. 66 #local variables (inside a 'def') don't have the dot. 67 67 wavpack = WavPacket(wavBytes) # instantiating a class. No need for the 'new' keyword in cobra. 68 68 return wavpack