MathGroup Archive 2012

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

Search the Archive

Using Throw/Catch in MeshFunctions doesn't work? (8.0.4)

I've written a function that uses Throw/Catch internally, and I'm having trouble using it in the MeshFunctions option in Plot3D. My Catches seem to be disabled in this case -- I get an "Uncaught Throw" error. My function works fine in other scenarios.

Here's a simple example that generates the Throw::nocatch error:

Plot3D[x^2 + y^2, {x, -1, 1}, {y, -1, 1}, MeshFunctions -> {Catch[Throw[#1 #2]]&}]

Is this a bug, or am I not understanding something?

(I've been able to get my function to work as a MeshFunction by modifying it to use Goto/Label instead of Catch/Throw, but bleh goto.)

Any info would be appreciated. :)
Brad C

  • Prev by Date: graph
  • Next by Date: Re: new functional operator
  • Previous by thread: Re: graph
  • Next by thread: Re: Using Throw/Catch in MeshFunctions doesn't work? (8.0.4)