01-11-2005, 11:34 PM
How about: mystring$ = ESCAPE "hi \"" + user$ + ESCAPE "\""
Or: mypath$ = LITERAL "c:\" + filepath$ + LITERAL "\" + filename$
Readable? Don't think so. ESCAPE|LITERAL couldn't "live" for each expression operand, it would have to be added before every literal string..
'$'s are bad, remember, surround it with real comments and it will take ages to be found.. OPTION ESCAPE is more clear.. as OPTION DYNAMIC | STATIC would, instead of that ugly '$dynamic|static thing.
How about this, leave quotes on '$include but don't process any escape chars inside it, as happens with aposts.. more consistence and i doubt anyone would use escape chars to define an include file..
Or: mypath$ = LITERAL "c:\" + filepath$ + LITERAL "\" + filename$
Readable? Don't think so. ESCAPE|LITERAL couldn't "live" for each expression operand, it would have to be added before every literal string..
'$'s are bad, remember, surround it with real comments and it will take ages to be found.. OPTION ESCAPE is more clear.. as OPTION DYNAMIC | STATIC would, instead of that ugly '$dynamic|static thing.
How about this, leave quotes on '$include but don't process any escape chars inside it, as happens with aposts.. more consistence and i doubt anyone would use escape chars to define an include file..
ew FreeBASIC forums: http://www.freebasic.net/forum/index.php