jed-users mailing list

[2009 Date Index] [2009 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Syntax changes


Peter Krefting <peter@xxxxxxxxxxxxxxxx> wrote:
>>	if((()=dupmark())==0){
>  		mark_buffer();
>  		()=dupmark();
>  	}

The above code does have a syntax error.  It should be:
  
  if (0 == dupmark())
    {
       mark_buffer ();
       () = dupmark ();
    }

You can also use:

   ifnot (markp()) mark_buffer ();
   () = dupmark();

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2009 date index] [2009 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]