|
 |
Op 28/01/2023 om 19:20 schreef Bald Eagle:
> Cousin Ricky <ric### [at] yahoo com> wrote:
>> On 2023-01-28 06:25 (-4), Kenneth wrote:
>
>>> (BTW: #if and #switch/#case do work well in the body of the isosurface, within
>>> the main function, to at least eliminate certain parts. Probably not good code
>>> practice, but it causes no problems AFAIK.)
>>
>> Directives (#if, #switch, etc.) in functions are parsed only once, when
>> the function is defined. Directives in functions that are coded in-line
>> in an isosurface will be observed each time the object is parsed, but
>> directives in any pre-defined functions used in the isosurface will not
>> be re-parsed.
>
> Say what now?
>
> I missed this in the first skim-through.
>
> I'll be trying this out at some point - but I'd like to see a working code
> example! (Considering that I had no idea this was possible)
>
Hmmmmm.... this makes sense, somehow, but I guess this behaviour could
produce unexpected results, with no clue of /where/ the diverging
behaviour would come from (if unaware of this behaviour).
--
Thomas
Post a reply to this message
|
 |