Author Topic: Question 37  (Read 8947 times)

0 Members and 1 Guest are viewing this topic.

Chuck Gabriel

  • Guest
Re: Question 37
« Reply #15 on: October 26, 2005, 05:54:30 PM »
Yeah.  You won't find the word Bozo anywhere in my resume, but it doesn't change the facts. :D

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Question 37
« Reply #16 on: October 26, 2005, 05:56:37 PM »
hehehehe,
now, THAT'S funny ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

LE

  • Guest
Re: Question 37
« Reply #17 on: October 26, 2005, 05:58:58 PM »
Perhaps you mean you are not formally trained. .. I'm not, and few of us are.
QUACK.  

 :lmao:

LE

  • Guest
Re: Question 37
« Reply #18 on: October 26, 2005, 06:01:39 PM »
Yeah.  You won't find the word Bozo anywhere in my resume, but it doesn't change the facts. :D

I am reading my resume... right now.... just to make sure.....

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Question 37
« Reply #19 on: October 26, 2005, 06:46:33 PM »
and also would avoid the re-write of var "text"

I never had changed the value of an argument on my functions.... as far I remember....


Not sure I understand (battling the flu)
But the 'text' var in the subroutine is a local var & has no effect on the 'text' var in the calling routine.
So why would you avoid change the argument?
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

LE

  • Guest
Re: Question 37
« Reply #20 on: October 26, 2005, 06:52:06 PM »
Code: [Select]
(defun rset ( text padding maxlen )
    (substr
        (setq text
            (strcat
                (setaux padding maxlen)
                text
            )
        )                               
        (- (strlen text) (1- maxlen))
    )
)

Here..... get well!

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Question 37
« Reply #21 on: October 26, 2005, 07:19:18 PM »
Quote
So why would you avoid change the argument?

From a purist perspective, which doesn't always seem relevant with Lisp ...

Variable typing and naming is generally considered critical to computer language debugging.

.. but debugging is more than just finding errors after they present themselves, it's also a proactive process to test the flow and integrity of your routine.

One mechanisn for doing this involves the investigation of variable values and testing them against preproven values.

A more consistant strategy for doing this can be determined if the variable values are assigned in more than a seemingly whimsical manner. < sorry, thats my sense of humor taking over>   

 

[added: Does that sound like , as jonesy would say, pretentious nonsense ]
« Last Edit: October 26, 2005, 07:23:45 PM by Kerry Brown »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Question 37
« Reply #22 on: October 26, 2005, 07:59:12 PM »
[added: Does that sound like , as jonesy would say, pretentious nonsense ]

Yes, but I see your point. :-D
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

LE

  • Guest
Re: Question 37
« Reply #23 on: October 27, 2005, 09:28:16 PM »
Question for the LISPERS.


No solution .... still ?

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Question 37
« Reply #24 on: October 30, 2005, 08:03:49 AM »
Kerry
How ironic, I was just doing some modifications to my TextInsert Routine & that very thing
bit me in the butt. he he he :-)
Looking back through my older code I sure need to re write most of it.
Who has the time to go back though, until it breaks.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.