Re: ? 1={}, is there really any other interpretation?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Al Getz wrote:
> Because the 'if' statement requires a boolean,
>   Name="Al"
> and
>   Name="Pete"
> should be handled as boolean.

The 'return' keyword also processes boolean statements too doesn't it?  When it
is used in a function that is, ie "return a < 10"

If double-equals for equality test could be implemented in a backward compatible
way then I would be for it. eg:

integer a
a = 3

if a = 3 then
   a = 5
end if


"Warning: single equal sign (=) for equality test detected at line 4" 
(unless 'without warning' used)

The only reason to do it though is to be friendly to people coding in other
languages.  Not a really big issue IMHO; you know you can't assign in an
if/while/return setting.

If we do go down the 'other language friendly' road though, can we make it so
semi-colons at end of each line are ignored? smile

Gary

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu