Changes between Version 9 and Version 10 of ParrotDeprecationsFor3.0

Show
Ignore:
Timestamp:
12/27/10 06:51:23 (11 years ago)
Author:
cotto
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ParrotDeprecationsFor3.0

    v9 v10  
    166166 
    167167Use string registers and the downcase opcode. For HLLs, provide its own version in the HLL mapped String type. 
     168 
     169 
     170== No implicit :main subs == 
     171 
     172=== Description === 
     173 
     174PIR programs will be required to have a sub marked :main.  Previously if no sub was marked :main, the first sub would be used. 
     175 
     176=== Rationale === 
     177 
     178Requiring a sub to be explicitly marked with the :main modifier makes PIR less magical and surprising and will make it easier to discover how a piece of PIR code works. 
     179 
     180=== Replacement === 
     181 
     182Pick a sub and mark it with the :main modifier: 
     183{{{ 
     184.sub 'start_here' :main 
     185  do_stuff 0, 1, "bananas" 
     186.end 
     187}}}