MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Module command acting funny...

  • To: mathgroup at
  • Subject: [mg58262] Re: Module command acting funny...
  • From: David Bailey <dave at>
  • Date: Sat, 25 Jun 2005 01:56:19 -0400 (EDT)
  • References: <d9gb7c$svs$>
  • Sender: owner-wri-mathgroup at

plizak wrote:
> computeIndividualCDOPLB[ filteredTimes ] := Module[
>    {i},
>    Print[ "computing IndividualCDOPLB"];
> ];
> mathcode(A1:A6), result is NULL (which means no errors).
> But when I call this module, it doesn't run (i.e. the output is not
> printed.
> When I remove the semicolon at the end of the print statement, it
> works!  Until I recompile it again and then it doesn't work until I add
> the semicolon back in.  I then just kept the semicolon in and changed
> the text to print (adding spaces), and it won't run the first time,
> only after I've modified it will it run.
> Any idea why this is the case?  I don't want my end users having to
> modify the code sheets after linking to mathematica.
> I normally would have more code in this module, but I stripped it all
> out and it still acts funny.
> Any ideas why this is the case?  Am I using Module[ ] properly?  Should
> I use Block[ ] or With[ ] instead?   Maybe another technique?
> Thanks,
> Peter

I notice that the argument to computeIndividualCDOPLB is not a pattern 
(i.e. does not contain an underscore), I wonder if that is what you meant?

David Bailey

  • Prev by Date: Re: Asking questions
  • Next by Date: Re: Re: Asking questions
  • Previous by thread: Re: Module command acting funny...
  • Next by thread: Re: Module command acting funny...