[Thread Prev][Thread Next][Index]

Re: use of primes



On Fri, 5 Sep 2003, Mark Williams wrote:
> yes? let test `(1 + `kk`)`
> 
>  **ERROR: command syntax: (1 +
>           + may not end an expression
> 
> What is happening is that ferret is trying to immediately evaluate
> between the first two graves.  What I want is for ferret to evaluate
> from the "inside out", that is first evaluate the `kk` and then the
> whole expression.

Hi Mark, 

You could do this in two steps, e.g.

let a = `kk`
let test = `1 + a`

But unless you really need immediate evaluation, no graves are necessary:

let test = 1 + kk

Andrew

+--------------------------------------------------------+
|   Dr. Andrew T. Wittenberg   |        GFDL/NOAA        |
|  Andrew.Wittenberg@noaa.gov  |      Princeton, NJ      |
+--------------------------------------------------------+





[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement