Re: Interpreter Mod We Can All Get Behind

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

Bernie Ryan wrote:
> 
> c.k.lester wrote:
> > 
> > Bernie Ryan wrote:
> > > And How about a line continuation symbol
> > > 
> > > Example:
> > > 
> > >   "This is a long string that I want to continue on the next line __
> > >    so I can just use the two underscores to continue it on this line"
> > 
> > Why would you want that? Euphoria already ignores line breaks in code
> > so you can do something like
> > 
> >    "This is a long string that I want to continue on the next line "
> >    & "so I can just use the two underscores to continue it on this line"
> >
> So I can do this which I think is less confusing:
> 
> record("MyStructure", "__
>  item1 long    1       __ 
>  item2 pointer 1       __
>  rect STRUCT RECT      __
>  item3 byte   10
>  item4 uint    1       __
>  ") 
> 
> > 
> > For string sequences, just use an editor that has word wrapping. :)
> > 
> > Besides, it would be a pain to implement. What if my string sequence has
> > a double underscore in it?
> 
> Underscores are only allowed inside of identifiers.
> If they are inside a sting they would be ignored.
> 
> 
> Bernie
> 
> My files in archive:
> WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 
> 
> Can be downloaded here:
> <a
> href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a>

This works, doesn't it? And what are the drawbacks?
record("MyStructure",
" item1 long    1  "& 
" item2 pointer 1  "&
" rect STRUCT RECT "&
" item3 byte   10  "&
" item4 uint    1  ") 

The only issue I see is that you need something both at the end and at the
beginning, while your scheme add something at the end only.
I'm not against it, it hardly hurts, but this item would be low on my own
priority list.

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu