|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Calling Value::print() with different ⎕PW |
Date: | Tue, 18 Feb 2014 11:34:36 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Elias,
normally you do something like this: // const Value & value; PrintContext pctx(style, Workspace::get_PP(), Workspace::get_CT(), Workspace::get_PW()); PrintBuffer pb(value, pctx); UCS_string ucs(pb, value.get_rank(), pctx.get_PW()); ... You can use your own ⎕PW value instead of Workspace::get_PW() above. It is generally a bad idea if programs or functions other then the interpreter itself modify the data structures of the interpreter because the functions of the interpreter make certain assumptions regarding the state of its data structures. If other functions modify these data structures, then it becomes impossible for me to maintain the interpreter. /// Jürgen On 02/18/2014 04:58 AM, Elias Mårtenson wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |