Re: [GNC-dev] Sample Report with Examples

john <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <[email protected]>

> On Jan 13, 2023, at 6:46 PM, flywire <[email protected]> wrote:
> 
> The point is not about the changes options make to reports, it's about how the report source code changes the report and report options. Why wouldn't unique string values help people unfamiliar with reports see the relationship more clearly?

While it's possible in Scheme to take that quoted option value and convert it to code I don't know of any report code in GnuCash that does so. That's a very good thing, we have enough Scheme-induced vulnerabilities without that.

With that in mind, no, the quoted-string default values do not in any way have anything to do with illustrating how the report source code changes the report and report options. Nor, for that matter, does hello-world.scm illustrate anything of the sort. hello-world.scm simply provides examples of the different types of options and very simply displays the values in the report. There's not a single line of code that changes the behavior of the report based on an option value--unlike many of the real options in most of the real reports.

Regards,
John Ralls
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.