Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-05-31 19:18:55


joel de guzman wrote:
>
> > In which case, can't the suntax just be
> >
> > var = expression;

        If 'var' was declared in an outer scope,
you wouldn't be able to tell if this was an assignment
or a declaration of a new variable without examining the
outer scope. It would also make it hard to generate error
messages for bad spelling:

        my_variable = 1;
        myvariable = 2; // woops, forgot the '_'

-- 
John (Max) Skaller, mailto:skaller_at_[hidden]
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk