Csound Csound-dev Csound-tekno Search About

[Csnd] Syntax for #include

Date2018-06-08 21:10
FromJohn
Subject[Csnd] Syntax for #include
At present the file name in #include can be delimited by any character
like
#include /foo/
but I think most people use
#include "foo"

I have a complete fix to macros inside the string if the delimiter is
always a double quote, in effect making the #include use the same string
syntax as elsewhere in orc/sco/csd

BUT this would be an incompatible change.  Does anyone use a non " in
this context?  Any thoughts on this change

And the new version has simpler code
==John ffitch

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-06-08 21:45
FromDave Seidel
SubjectRe: [Csnd] Syntax for #include
I'm in favor of simplifying it.

On Fri, Jun 8, 2018 at 4:11 PM John <jpff@codemist.co.uk> wrote:
At present the file name in #include can be delimited by any character
like
#include /foo/
but I think most people use
#include "foo"

I have a complete fix to macros inside the string if the delimiter is
always a double quote, in effect making the #include use the same string
syntax as elsewhere in orc/sco/csd

BUT this would be an incompatible change.  Does anyone use a non " in
this context?  Any thoughts on this change

And the new version has simpler code
==John ffitch

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


--
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-06-08 22:20
FromMichael Gogins
SubjectRe: [Csnd] Syntax for #include
Occasional backwardsly incompatible changes may be necessary and they can be tolerable if there is an error or warning message with enough context that an ordinary human being can interpret it. 

Best, 
Mike

On Fri, Jun 8, 2018, 16:11 John <jpff@codemist.co.uk> wrote:
At present the file name in #include can be delimited by any character
like
#include /foo/
but I think most people use
#include "foo"

I have a complete fix to macros inside the string if the delimiter is
always a double quote, in effect making the #include use the same string
syntax as elsewhere in orc/sco/csd

BUT this would be an incompatible change.  Does anyone use a non " in
this context?  Any thoughts on this change

And the new version has simpler code
==John ffitch

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-06-09 00:46
Fromthorin kerr
SubjectRe: [Csnd] Syntax for #include
Seems OK, but, does this also mean filenames in the include string can't use the $ character?

T




On Sat, 9 Jun. 2018, 6:11 am John, <jpff@codemist.co.uk> wrote:
At present the file name in #include can be delimited by any character
like
#include /foo/
but I think most people use
#include "foo"

I have a complete fix to macros inside the string if the delimiter is
always a double quote, in effect making the #include use the same string
syntax as elsewhere in orc/sco/csd

BUT this would be an incompatible change.  Does anyone use a non " in
this context?  Any thoughts on this change

And the new version has simpler code
==John ffitch

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-06-09 02:03
FromDave Seidel
SubjectRe: [Csnd] Syntax for #include
Good point. Hopefully all legal filenames will be allowed (including spaces). Should be fine as long as they're delimited by quotes. 

On Fri, Jun 8, 2018, 7:46 PM thorin kerr <thorin.kerr@gmail.com> wrote:
Seems OK, but, does this also mean filenames in the include string can't use the $ character?

T




On Sat, 9 Jun. 2018, 6:11 am John, <jpff@codemist.co.uk> wrote:
At present the file name in #include can be delimited by any character
like
#include /foo/
but I think most people use
#include "foo"

I have a complete fix to macros inside the string if the delimiter is
always a double quote, in effect making the #include use the same string
syntax as elsewhere in orc/sco/csd

BUT this would be an incompatible change.  Does anyone use a non " in
this context?  Any thoughts on this change

And the new version has simpler code
==John ffitch

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here