[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
newlispfanclub.alh.net • View topic - bug?

bug?

Q&A's, tips, howto's

bug?

Postby kesha » Thu Oct 06, 2016 6:15 pm

kesha
 
Posts: 7
Joined: Tue Dec 04, 2012 9:11 pm

Re: bug?

Postby Lutz » Thu Oct 06, 2016 9:51 pm

Thanks for finding this. nil is only allowed in ++, --, inc and dec when contents of a variable, else it is seen as a wrong parameter.

fixed here: http://www.newlisp.org/downloads/develo ... nprogress/
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: bug?

Postby ralph.ronnquist » Thu Oct 06, 2016 10:00 pm

I'd say Bug!

Apparently ++ manages to increment nil so now the value of nil is 1.
It also appears to require a compound set of circumstances for allowing ++ increment nil, so: Well done, for finding this problem.

EDIT: Lutz was already well ahead (of course?).
ralph.ronnquist
 
Posts: 216
Joined: Mon Jun 02, 2014 1:40 am
Location: Melbourne, Australia

Re: bug?

Postby kesha » Fri Oct 07, 2016 8:19 am

Thanks Lutz!
kesha
 
Posts: 7
Joined: Tue Dec 04, 2012 9:11 pm


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest