What's the general thoughts in adding even more DWIM to C constructors?  
Extra bloat or needed syntatic sugar?

As a random thought I was having the other day, it'd be nice if the 
following automagically worked:

  void functionname(char* foo, STRLEN foo_length)
  {
    ....

Which can be called from perl like so:

  functionname("this is my string, do you like it?")

And both foo and foo_length get filled in.  What do we think?  Conditions 
for the DWIM to kick in are:

 a) A char* (or similar) followed by a STRLEN.

 b) The STRLEN variable name is the same as the char* but has _length
    attached on the end.

Does this kind of thing make sense, or am I just muddying the waters here?

Mark

-- 
s''  Mark Fowler                                     London.pm   Bath.pm
     http://www.twoshortplanks.com/              [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}

Reply via email to