help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assert(1,int8(1)) ?


From: David Bateman
Subject: Re: assert(1,int8(1)) ?
Date: Fri, 28 Sep 2007 16:18:20 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Kim Hansen wrote:
> I didn't expect assert to behave like this, is this by design or a bug ?
>
>
> octave:1> 1==int8(1)
> ans =  1
> octave:2> assert(1,int8(1))
> error: assert (1,int8 (1)) expected
> 1
> but got
>  1
> Type scalar != int8 scalar
> error: called from `assert' in file
> `/usr/share/octave/2.9.14/m/testfun/assert.m'
> octave:2>
>
>
>   
Nope that is by design.. The type of a variable is as important as its
value...

D.


-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



reply via email to

[Prev in Thread] Current Thread [Next in Thread]