Re: assign to magic name-of-function variable instead of "return"

2001-02-02 Thread Charles Lane

Peter Scott <[EMAIL PROTECTED]> wrote:
>At 07:12 PM 2/1/01 -0600, David L. Nicol wrote:
>>I recalled hearing about a language (was it java?) where
>>you set the return value of a function (was it VB?) by
>>assigning to the name of the function within the function body,
>>so the last line would be
>>
>> fname=rval;
>>
>>or fname could be used instead of rval all through it.
>
>Ah, an homage to Pascal :-)

More like Fortran:
   REAL FUNCTION FOO(A)
   REAL A
C
   FOO = 2*A+3
   RETURN
   END
^^^
 note exactly 7 spaces...

And I think Fortran has a better claim to priority ;)
--
 Drexel University   \V--Chuck Lane
==]-->*<---[===
 (215) 895-1545 _/ \  Particle Physics
FAX: (215) 895-5934 /\ /~~~[EMAIL PROTECTED]



Re: PERL6STORM - tchrist's brainstorm list for perl6

2000-09-21 Thread Charles Lane

Tom Christiansen <[EMAIL PROTECTED]>  wrote:

>=item perl6storm #0016
>
>object as scope/namespace?  see python.  it's danged clean
>there in that you can now implement safe trivially.
>don't have to keep inventing crazy overloads.
>

Yes, this would be great!

>=item perl6storm #0025
>
>Make -T the default when operating in a CGI env.  That is, taintmode.
>Will this kill us?  Close to it.  Tough.  Insecurity through idiocy
>is a problem.  Make them *add* a switch to make it insecure, like
>-U, if that's what they mean, to disable tainting instead.

One combination of #16 and #25 that would be useful is a way to turn
on tainting in a Safe partition (i.e, a trusted 'driver' running
suspect code -T in Safe::).
--
 Drexel University   \V--Chuck Lane
==]-->*<---[===
 (215) 895-1545 _/ \  Particle Physics
FAX: (215) 895-5934 /\ /~~~[EMAIL PROTECTED]