>Method calls should interpolate in double-quoted strings, and similar >locations. > print "Today's weather will be $weather->temp degrees and sunny."; >Would deparse to: > print 'Today\'s weather will be '.$weather->temp().' degrees and sunny.'; So, the -> operator is supposed to get expanded in dq strings, eh? What about class methods, like "Give him Employee->salary() again"? Or what about things like "move lost->found"? What does that do? And why is -> special then? What about "move lost+found"? Surely we can't be adding those now! Isn't it inconsistent to do this? --tom
- RFC - Interpolation of method calls Michael G Schwern
- Re: RFC - Interpolation of method calls Michael Fowler
- Re: RFC - Interpolation of method calls Nathan Wiger
- Re: RFC - Interpolation of method calls Michael Fowler
- Re: RFC - Interpolation of method calls David L. Nicol
- Re: RFC - Interpolation of method calls Michael Fowler
- Re: RFC - Interpolation of method calls Tom Christiansen
- Re: RFC - Interpolation of method calls Nick Ing-Simmons
- Re: RFC - Interpolation of method calls Tom Christiansen
- Re: RFC - Interpolation of method calls Michael G Schwern
- Re: RFC - Interpolation of method calls Nathan Wiger
- Re: RFC - Interpolation of method calls Tom Christiansen
- Re: RFC - Interpolation of method calls Nathan Wiger
- Re: RFC - Interpolation of method ... Tom Christiansen
- Re: RFC - Interpolation of met... Michael G Schwern
- Re: RFC - Interpolation of... Tom Christiansen
- Re: RFC - Interpolation of... Michael G Schwern
- Re: RFC - Interpolation of... Tom Christiansen
- Re: RFC - Interpolation of met... Nathan Wiger