Re: Pointers (again) [humongously offtopic]

1998-06-22 Thread Maarten van Leunen
James wrote: On Sat, 20 Jun 1998, Andrea Arcangeli wrote: -On Fri, 19 Jun 1998, James wrote: - -i like VI, it's quick, small and has no distracting menus (ok so you - -I use emacs from the console... i've never used emacs

Re: Pointers (again)

1998-06-22 Thread holotko
Andrea Arcangeli wrote: On Thu, 18 Jun 1998, Glynn Clements wrote: fixed a bug in an XEmacs package caused by using nreverse on a list NO Glynn, XEmacs is a sacrilege ;-). Emacs without the X is the right editor ;*)). Andrea[s] Arcangeli Isn't there an "emacs-nox", a no X version of

Re: Pointers (again)

1998-06-22 Thread holotko
James wrote: On Thu, 18 Jun 1998, Glynn Clements wrote: -Right. Could you please shoot the person who taught you this before -they do any more damage :) that would be a pleasure :) he's also the same person that taught me declarative programming (euugh! so slow and nasty) and recursion

Re: Pointers (again)

1998-06-22 Thread holotko
Kevin Sivits wrote: On Wed, 17 Jun 1998, CyberPeasant wrote: James wrote: listy = (line *) malloc (sizeof (line)); No need to cast the return of malloc. Seems like casting the malloc return type is good style to me. It has helped me catch errors to stupid mistakes like:

Re: Pointers (again)

1998-06-22 Thread MCENANEY WILLIAM J
Hi Friend, Yes, there is an emacs-nox, but from its name, I doubt that it will run under X. Best wishes, Bill

Re: Pointers (again)

1998-06-22 Thread Glynn Clements
holotko wrote: fixed a bug in an XEmacs package caused by using nreverse on a list NO Glynn, XEmacs is a sacrilege ;-). Emacs without the X is the right editor ;*)). Isn't there an "emacs-nox", a no X version of emacs which runs under X?? There are two issues that I think should be

Re: Pointers (again) [offtopic]

1998-06-21 Thread James
On Sat, 20 Jun 1998, Andrea Arcangeli wrote: -On Fri, 19 Jun 1998, James wrote: - -i like VI, it's quick, small and has no distracting menus (ok so you - -I use emacs from the console... i've never used emacs (except X-Emacs), it has

Re: Pointers (again) [offtopic]

1998-06-20 Thread Andrea Arcangeli
On Fri, 19 Jun 1998, James wrote: i like VI, it's quick, small and has no distracting menus (ok so you I use emacs from the console... Andrea[s] Arcangeli

Re: Pointers (again)

1998-06-20 Thread James
On Fri, 19 Jun 1998, Glynn Clements wrote: -Also, many problems which could be solved by either branched recursion -or iteration (tail-end recursion) can be solved more efficiently by -branched recursion; typically the recursive approach is O(log(n)) -whereas the iterative approach is O(n). -

Re: Pointers (again)

1998-06-19 Thread James
Date: Fri, 19 Jun 1998 00:08:53 +0200 (CEST) From: Andrea Arcangeli [EMAIL PROTECTED] To:Glynn Clements [EMAIL PROTECTED] Cc:Linux C Programming List [EMAIL PROTECTED] Subject: Re: Pointers (again) Reply-to: Andrea Arcangeli [EMAIL

RE: Pointers (again)

1998-06-19 Thread Beltrao Coelho Lda
- Mensagem original - De: James [SMTP:[EMAIL PROTECTED]] Enviada em: sexta-feira, 19 de junho de 1998 11:49 Para: [EMAIL PROTECTED] Assunto:Re: Pointers (again) Date: Fri, 19 Jun 1998 00:08:53 +0200 (CEST) From

Re: Pointers (again)

1998-06-19 Thread James
On Thu, 18 Jun 1998, Glynn Clements wrote: - that would be a pleasure :) he's also the same person that taught me - declarative programming - -That's *really* odd. Someone with a functional programming background -would never add at the tail. hmm, if i could be bothered moving i'd dig out the

Re: Pointers (again)

1998-06-19 Thread Glynn Clements
James wrote: - (euugh! so slow and nasty) and recursion (has a few uses... maybe) - -I think that I would have to disagree most strongly with both of those -remarks. why do i get the feeling this is one of those long running arguments, like the 'pc is better than the mac' 'Linux is

Re: Pointers (again)

1998-06-18 Thread Karl F. Larsen
My book is "New C Primer Plus", by The Waite Group published by Sam's International Standard Book Number 0-672-30319-1 and it covers all aspects of C in a clear manner and my experiance has been that the Linux compiler works exactly like the book clains unix should work. On Wed, 17 Jun

Re: Pointers (again)

1998-06-18 Thread Kevin Sivits
On Wed, 17 Jun 1998, CyberPeasant wrote: James wrote: listy = (line *) malloc (sizeof (line)); No need to cast the return of malloc. Seems like casting the malloc return type is good style to me. It has helped me catch errors to stupid mistakes like: char *pointer;

Re: Pointers (again)

1998-06-18 Thread James
On Thu, 18 Jun 1998, Glynn Clements wrote: -Right. Could you please shoot the person who taught you this before -they do any more damage :) that would be a pleasure :) he's also the same person that taught me declarative programming (euugh! so slow and nasty) and recursion (has a few uses...

Re: Pointers (again)

1998-06-18 Thread Glynn Clements
James wrote: -Right. Could you please shoot the person who taught you this before -they do any more damage :) that would be a pleasure :) he's also the same person that taught me declarative programming That's *really* odd. Someone with a functional programming background would never add

Re: Pointers (again)

1998-06-18 Thread Andrea Arcangeli
On Thu, 18 Jun 1998, Glynn Clements wrote: fixed a bug in an XEmacs package caused by using nreverse on a list NO Glynn, XEmacs is a sacrilege ;-). Emacs without the X is the right editor ;*)). Andrea[s] Arcangeli

Re: Pointers (again)

1998-06-18 Thread Andrea Arcangeli
On Thu, 18 Jun 1998, Glynn Clements wrote: (euugh! so slow and nasty) and recursion (has a few uses... maybe) I think that I would have to disagree most strongly with both of those remarks. I disagree too!! Recursion is nice, the nicer and useful things for a programmer. I love it,

Pointers (again)

1998-06-17 Thread James
Ok, i understand the need to make a pointer to the pointer so you can make the pointer point to some other pointer (ok, so i intentionally put lots of pointers in that line :) ) but here's what i'm trying to do: Note: 'line' is defined as follows: -- Part of parser.h -- typedef struct line_t

Re: Pointers (again)

1998-06-17 Thread Glynn Clements
James wrote: void next_1 (line **in) { /* this is where i am having difficulties, gcc gives this error: passback.c:9: request for member `next' in something not a structure or union */ *in = in-next; Try *in = (*in)-next; `in' is a pointer to a

Re: Pointers (again)

1998-06-17 Thread James
On Wed, 17 Jun 1998, Glynn Clements wrote: - -James wrote: - - void next_1 (line **in) - { - /* this is where i am having difficulties, gcc gives this error: -passback.c:9: request for member `next' in something not a structure -or union */ - *in = in-next; - -Try - -

Re: Pointers (again)

1998-06-17 Thread Glynn Clements
James wrote: - listy = (line *) malloc (sizeof (line)); - -No need to cast the return of malloc. well it gets rid of an annoying warning. There shouldn't be any warning without the cast. malloc() is defined to return `void *', which can be implictly cast to any data pointer without a

Re: Pointers (again)

1998-06-17 Thread Henk Jan Barendregt
James wrote: Ok, i understand the need to make a pointer to the pointer so you can make the pointer point to some other pointer (ok, so i intentionally put lots of pointers in that line :) ) but here's what i'm trying to do: Be careful on using pointers in C , it can take you hours to