On Sunday, February 12, 2017 at 11:05:54 PM UTC-5, Charles wrote: > > Hi, > > Maybe a trivial question but if db.table could lead to used variable > before declaration errors, why allow this form at all ? Or are there some > cases where it is of better use ? >
I don't think there is any particular case in which using db.table is preferred (maybe if you are generating the Field definition programmatically and already have the table object in a variable), so you can stick with 'reference table'. We're not going to disallow the former, though, as that would break backward compatibility. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

