Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: awka on Mac...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 8 Topic 2225 of 2241
Post > Topic >>

Re: awka on Mac OS X 10.4.11 [Intel]

by Robert Peirce <bob@[EMAIL PROTECTED] > Apr 23, 2008 at 02:55 PM

In article <funeo6$qtn$1@[EMAIL PROTECTED]
>,
 Thomas Weidenfeller <nobody@[EMAIL PROTECTED]
> wrote:

> Just some more data points. All on the same machine under Solaris 10:

Output data deleted for brevity.

> I think the conclusion is obvious. Don't use such constructs. These are 
> anyhow constructs a sane programmer wouldn't have used at all :-)

I agree.  I never use them.  They were in the test suite.  Clearly, 
different versions of awk produce different output on this.  Everything 
else tests fine so I should be okay.  I was just hoping I could make it 
perfect.

Frankly, it never occurred to me that these would be different.  I still 
have trouble figuring out the logic behind the line that produced 28.  
25 made sense, but not 28.  It plays on very tricky features that nobody 
in their right mind should use.

It is like some of the perl scripts I have seen where somebody manages 
to compact a whole program into one line of code.  Sure, you can do it, 
but why?

> It is up to the language and standards lawyer to argue which of the two 
> results is right under which conditions. IMHO for practical purposes it 
> doesn't matter. Both behavior can apparently be found "in the wild". So 
> again, I would completely avoid such twisted constructs in real-world 
> awk programs.

You don't have to tell me.  I like obvious code.  I may have to figure 
out what it is doing 10 years from now.

-- 
Robert B. Peirce, Venetia, PA  724-941-6883
bob AT peirce-family.com [Mac]
rbp AT cooksonpeirce.com [Office]




 8 Posts in Topic:
awka on Mac OS X 10.4.11 [Intel]
Robert Peirce <bob@[EM  2008-04-23 11:42:55 
Re: awka on Mac OS X 10.4.11 [Intel]
Janis <janis_papanagno  2008-04-23 05:48:55 
Re: awka on Mac OS X 10.4.11 [Intel]
Thomas Weidenfeller <n  2008-04-23 15:48:54 
Re: awka on Mac OS X 10.4.11 [Intel]
Robert Peirce <bob@[EM  2008-04-23 14:55:05 
Re: awka on Mac OS X 10.4.11 [Intel]
Janis Papanagnou <Jani  2008-04-23 17:29:46 
Re: awka on Mac OS X 10.4.11 [Intel]
Robert Peirce <bob@[EM  2008-04-24 12:46:46 
Re: awka on Mac OS X 10.4.11 [Intel]
Janis <janis_papanagno  2008-04-24 06:28:43 
Re: awka on Mac OS X 10.4.11 [Intel]
pk <pk@[EMAIL PROTECTE  2008-04-24 15:42:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 4:08:34 CDT 2008.