#1190: Replace .globalconst/.const directives by .const/.localconst 
(respectively)
--------------------+-------------------------------------------------------
 Reporter:  kjs     |       Owner:                                        
     Type:  RFC     |      Status:  new                                   
 Priority:  normal  |   Milestone:                                        
Component:  none    |     Version:  trunk                                 
 Severity:  medium  |    Keywords:  PIR, .globalconst, .localconst, .const
     Lang:          |       Patch:                                        
 Platform:          |  
--------------------+-------------------------------------------------------

Comment(by kjs):

 I thought a bit more on this, and global .consts are more common than
 sub-local consts (I think). Following the Huffman principle, I think it
 would be nicer then to use '.localconst' for a local const, only
 available in a sub, and .const for global constants. (and thus removing
 .globalconst).

 (I'm not sure where sub-local constants are stored; are they stored in
 the constants table of a PBC file? In that case the only thing
 preventing code from using a local constant in a global context would be
 the pir compiler.)

 comments welcome,
 kjs

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1190#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to