Re: line continuation

new topic     » goto parent     » topic index » view thread      » older message » newer message

Why wouldn't the beginning white space be skipped in case of
line-continuation?
it is a very handy feature of tcl/tk...

Riwal Raude
rauder at thmulti.com

> -----Original Message-----
> From: Lewis Townsend [SMTP:keroltarr at HOTMAIL.COM]
> Sent: Monday, October 18, 1999 7:17 PM
> To:   EUPHORIA at LISTSERV.MUOHIO.EDU
> Subject:      Re: line continuation
>
> Hello Bernie,
>
> >Rob why can't you implement a line continuation token.
> >   You could use something like this -\ which would treat everything
> >   after it as comments and continue to parse on the next line.
> >
> >   Then we would not have to write
> >
> >   "the first line"&  -- comment 1
> >   "the second line"& -- comment 2
> >   "the third line"&  -- comment 3
> >   "the forth line"
> >
> >   But this when intializing a large sequence of text
> >
> >   "the first line   -\  comment 1
> >   the second line   -\  comment 2
> >   the third line    -\  comment 3
> >   the forth line"
> >
> >Bernie
>
> That's an interesting idea but I can't see that it has much
> advantage over the current way. Is -\ really easier to type
> than "& ? They're both just two characters, or is it the
> built-in comment that you like better? I personally would like
> the ability to do this:
>
> "the first line
> the second line -- this is part of the string
> the third line" -- this is a comment
>
> of course you couldn't tab to indent or add spaces without
> messing with the string but it would be a handy short-hand
> at times.
>
> later,
> Lewis Townsend
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu