ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: \define...
       [not found] <mailman.0.1271757601.23007.ntg-context@ntg.nl>
@ 2010-04-20 13:38 ` Vyatcheslav Yatskovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-04-20 13:38 UTC (permalink / raw)
  To: ntg-context


"Curiouser and curiouser!" cried Alice.
:)

>
> context has two different versions of \define, there is one in
> syst-ext.mkii/syst-aux.mkiv
> which has no parameters but prevents you from overwriting a existing
> command (there \redefine
> with allows this) and another one in core-sys.mkii/mkiv which replace
> the first one and has
> support for parameters but replace on the other side the old definition
> (you get only the
> terminal message)
>
> the question is, which behavious is correct, replace the old macro or
> keep it, in my
> opinion \define should leave the old definition untouced and \redefine
> should be used
> in this case (but we need a version with parameters)


-- 
Best Regards,
Vyatcheslav Yatskovsky
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: \define...
  2010-04-19 19:15     ` \define... (was: Re: Structuring topics) Peter Münster
@ 2010-04-20  3:41       ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2010-04-20  3:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 19.04.10 21:15, schrieb Peter Münster:
> On Mon, Apr 19 2010, Wolfgang Schuster wrote:
>    
>> \starttext
>> \define\hans{hans}
>> \define\hans{taco}
>> \stoptext
>>
>> the output now is 'hans' because \define checks whether a command with the
>> name \hans is already defined
>>      
> Hello Wolfgang,
>
> Did you test it? The output is "taco" here on my system:
> MTXrun | current version: 2010.04.16 21:08
>    
no i didn't test it

context has two different versions of \define, there is one in 
syst-ext.mkii/syst-aux.mkiv
which has no parameters but prevents you from overwriting a existing 
command (there \redefine
with allows this) and another one in core-sys.mkii/mkiv which replace 
the first one and has
support for parameters but replace on the other side the old definition 
(you get only the
terminal message)

the question is, which behavious is correct, replace the old macro or 
keep it, in my
opinion \define should leave the old definition untouced and \redefine 
should be used
in this case (but we need a version with parameters)

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-20 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.0.1271757601.23007.ntg-context@ntg.nl>
2010-04-20 13:38 ` \define Vyatcheslav Yatskovsky
     [not found] <mailman.629.1271656654.4277.ntg-context@ntg.nl>
2010-04-19 17:08 ` Structuring topics Vyatcheslav Yatskovsky
2010-04-19 18:29   ` Wolfgang Schuster
2010-04-19 19:15     ` \define... (was: Re: Structuring topics) Peter Münster
2010-04-20  3:41       ` \define Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).