Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Delphi procedure

Name: Anonymous 2008-04-15 15:51

Is it possible to use procedures( a timer specifically) to use other procedures in delphi?

Name: Anonymous 2008-04-15 15:53

Forget it. It's NP complete.

Name: Anonymous 2008-04-15 15:54

SICP is compatible with it.  Try that.

Name: Anonymous 2008-04-15 15:55

>>2
Is that even relevant to this thread, or just your way of saying "I've read CTM"?

Name: Anonymous 2008-04-15 15:57

>>2
>>3
forgive my ignorance but what do these things stand for

Name: Anonymous 2008-04-15 15:59

I am a Delphi EXPERT, but I don't understand the question.

Name: Anonymous 2008-04-15 16:09

So I have this stuff:


sumList :: (Num a) => [a] -> [a]
sumList [] = []
sumList (x:[]) = []
sumList (x:xs:xss) = x + xs : sumList (xs:xss)


How do I use this to generate Pascal's triangle as an infnite list?

Name: Anonymous 2008-04-15 16:10

>>6
I have a procedure that splits a real value into characters I want this procedure to be used when I press a button and also in a timer, I could copy the code directly from the procedure into the button procedure and the timer both but this seems like lazy programming.

Name: Anonymous 2008-04-15 16:15


pascal 1 = [1]
pascal 2 = [1,1]
pascal n = [1] ++ (sumList (pascal (n - 1))) ++ [1]

Name: Anonymous 2008-04-15 16:29

>>8
You'll be wanting a procedure pointer, then.

Name: Anonymous 2008-04-15 17:53

>>8
WTF? Why not call the procedure, instead of copying the code?

Name: Anonymous 2008-04-15 17:53

>>10
what pointers would you reccomend I use in the procedure?

Name: Anonymous 2008-04-15 17:56

>>11
I tried just putting the procedure name in but it wanted more.

Name: Anonymous 2008-04-15 17:58

>>12
This site http://tinyurl.com/5o83g8 explains pointers in Delphi. Good luck

Name: Anonymous 2008-04-15 17:58

Let's see your code. I'm probably being trolled.

Name: Anonymous 2008-04-15 18:26

>>15
I don't have my code in front of me but here is roughly what it was like:

procedure ValueSplit;
{can't remember this of the top of my head}
   
end;



procedure TFormRealSplit.Button1(Sender: TObject);
begin
 Timer1.Enabled:= True;
 
end;



procedure TFormRealSplit.Timer1(Sender: TObject);
begin

  Value:=1+Value;
  valuesplit;// this is the bit i really dont understand why it wouldn't work
  end;


Name: Anonymous 2008-04-15 18:29

$ tinyresolve http://tinyurl.com/5o83g8
tinyurl.com /5o83g8 = http://yhbt.net/

Name: Anonymous 2008-04-15 18:34

Name: Anonymous 2008-04-15 18:36

That does work. When you post the actual code and error message, I can be more helpful.

Name: Anonymous 2008-04-15 18:37

>>17,18
Previewing tiny URLs is an automatic concession of defeat. Posting about it is like publically admitting you were trolled to the highest degree, far more than if you had just visited the URL directly.

Have A Nice Day.

Name: Anonymous 2008-04-15 18:46

>>19
not enough parameters was the error and it highlighted the line i commented. The computer with my code is at my dads house so i won't be able to get to it for a few days. Its okay if you can't help thanks anyway.

Name: Anonymous 2008-04-15 19:34

>>20
That's why http://tinyurl.com/4ho793 is much more efficient.

Name: Anonymous 2008-04-15 19:44

>>22
This TinyURL redirects to:

http://yhbt.net/?again


Keep going, I'm just gonna ruin your fun.

Name: Anonymous 2008-04-15 19:58

The only way to win, is not to click.

Name: >>17 2008-04-16 1:34

>>18
What do you think tinyresolve does?

Name: Anonymous 2008-04-16 4:35

>>25
curl -is $1 | sed -n "s/Location: //p"

Name: Anonymous 2008-04-16 10:55

>>23
YHBTA

Name: Anonymous 2008-04-16 11:42

>>26
Doesn't even use curl. It just cats a HEAD request to /dev/tcp/tinyurl.com/blahblah.

Name: Anonymous 2008-04-16 11:54

>>27
VISTA

Name: Trollbot9000 2009-07-01 8:38

N appropriate forum to.

Name: Anonymous 2010-11-15 14:24

Name: Sgt.Kabukiman 2012-05-22 3:36

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: Anonymous 2012-05-22 7:10

Rei.

Don't change these.
Name: Email:
Entire Thread Thread List