|
|
I'm understanding most of this-- although I confess that the 'dictionary'
feature is new to me. I knew it was added to v3.8, but I'm currently clueless as
to what it's for :-O
From a user's standpoint re: functions, I think the actual problem-- a small
one--may be with the error message itself (and maybe the documentation about
#undefining a function). For example...
#declare B = function(0)
#declare B = 0
The error message (as Tor Olav mentioned) is...
"Redeclaring functions is not allowed-- #undef the function first!"
Until now, I've understood that to mean, "if I try to re-define the first
function as another FUNCTION". Like,
#declare B = function{0}
#declare B = function(y){sin(2*pi*y)}
Although, I now see that there's a *different* way of reading the error
message-- the way that was probably intended: "Don't try to redeclare a function
name without undefining it first." That solves the ambiguity. It may not be
technically accurate, but it takes care of situations like my first example
above.
Post a reply to this message
|
|