problems about "eval"

John W. Eaton jwe at bevo.che.wisc.edu
Tue Aug 19 12:48:02 CDT 2008


On 19-Aug-2008, Peter1 Mueller wrote:

| 
| 
| Hi All,
| 
| attached  I send you e difference between Octave and MAtlab R12P1.
| 
| 
| Octave, win32:
| 
| octave-3.0.1.exe:8> ~eval('defines.PHDRS_AEROFPGA_H_ ', '0')
| ans = 0
| error: evaluating prefix operator `!' near line 8, column 1
| octave-3.0.1.exe:8>
| 
| 
| Matlab:
| 
| >> ~eval('defines.PHDRS_AEROFPGA_H_ ', '0')
| 
| ans =
| 
|      1
| 
| >>
| 
| 
| in addition:
| 
| 
| >> defines.PHDRS_AEROFPGA_H_
| ??? Undefined variable 'defines'.
| 
| >>
| 
| so   defines.PHDRS_AEROFPGA_H_  is undefined and therefore 0 is returned.

I checked in the following change.

Thanks,

jwe

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080819/365385dc/attachment.ksh 


More information about the Bug-octave mailing list