Re: [svn:parrot] r19231 - trunk/languages/perl6/src/pmc On Fri, 22 Jun 2007 10:35:00 -0700
chromatic  wrote:
> > > If we're passing in a string literal, it seems silly to pass in a
> > > length of 0, as we're recalculating a constant on every call.  I
> > > don't see that this macro fixes that.
> 
> > It uses sizeof, not strlen.  So, it pushes the calculation to
> > compile-time, so you only have to do it once, and never at runtime.
> 
> You and Nicholas are both right.  I saw sizeof() but thought
> strlen().  With Patrick's suggestion to use the name
> string_from_literal() instead, I'm satisfied.

Great!  Here's a reissued patch with the name changed to
string_from_literal().

Mark
