[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
Re: [FWP] Goal oriented programming
- To: jdporter@min.net (John Porter)
- Subject: Re: [FWP] Goal oriented programming
- From: "Edward M. Perry" <eperry@learjet.com>
- Date: Wed, 30 Jun 1999 14:33:43 CDT
- Cc: fwp@technofile.org
- In-Reply-To: <199906301829.OAA12180@min.net>; from "John Porter" at Jun 30, 99 2:29 pm
> You might understand if I rewrite it with normal parens, which
> were made unnecessary by the sub prototypes.
>
> foo( 1, bar( 2, foo( 3, bar( 4 ) ) ) );
>
> Normal nested subroutine calls. No wierd Perlish inverted syntax.
> It would look exactly the same in C. The point is, of course,
> that things don't necessarily get executed in lexical order, nor
> should they be expected to. If you couldn't do this, you'd have
> to use lots of temporary variables:
>
> $t1 = bar(4);
> $t2 = foo( 3, $t1 );
> $t3 = bar( 2, $t2 );
> foo( 1, $t3 );
>
> and this is what the opcodes generated by the compiler are doing.
>
> John Porter
I understood it fine. I wasn't discussing nested subroutines. Their fun.
==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org