Wiki

Changes between Version 18 and Version 19 of AllOfCobraInOnePage

Show
Ignore:
Timestamp:
01/10/14 06:59:27 (11 years ago)
Author:
kobi7
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AllOfCobraInOnePage

    v18 v19  
    6262        var bytes as uint8[] 
    6363        def toWavPacket as WavPacket 
    64                 wavBytes = Mp3Utils.decode(.bytes)  
    65                 # methods without arguments, getters and some variables are accessed uniformly, with a '.' before their name. 
    66                 #local variables don'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. 
    6767                wavpack = WavPacket(wavBytes) # instantiating a class. No need for the 'new' keyword in cobra. 
    6868                return wavpack