#1332: change get_string on FPA, RPA (et al?)
---------------------+------------------------------------------------------
 Reporter:  coke     |       Owner:        
     Type:  feature  |      Status:  new   
 Priority:  normal   |   Milestone:        
Component:  none     |     Version:        
 Severity:  medium   |    Keywords:  newbie
     Lang:           |       Patch:        
 Platform:           |  
---------------------+------------------------------------------------------

Comment(by whiteknight):

 I disagree, I think the better option is to throw an exception. An Array
 isn't a scalar, and any VTABLE that implicitly treats it as one is wrong.
 If I have an RPA, for instance, and it contains PMCs which don't
 stringify, when we call VTABLE_get_string on the array we are going to get
 something that looks like an unrelated error and it's going to be very
 confusing.

 If HLLs want this kind of behavior, it can be easily added in a subclass,
 or some kind of extension method in the namespace.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1332#comment:4>
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