[ROOT-6802] Disable by default CLING dynamic extension in named macro Created: 08/Oct/14  Updated: 18/Nov/14  Resolved: 18/Nov/14

Status: Closed
Project: ROOT
Component/s: Cling
Affects Version/s: 6.02/01
Fix Version/s: 6.04.00, 6.02/02

Type: Bug Priority: Blocker
Reporter: Lorenzo Moneta Assignee: Axel Naumann
Resolution: Fixed Votes: 0
Labels: None
Environment:

All


Development:

 Description   

Dynamic extensions don't work properly and produces a lots of crashes which compromise the usability of ROOT 6.
A very simple reproducible is to type (or add in a macro)

auto h1 = new TH1D("h1","h1",nbins,0,1);

which crashes in ROOT,if you do before

root> .dynamicExtensions 0

you get a clean error message

ROOT_prompt_1:1:30: error: use of undeclared identifier 'nbins'
auto h1 = new TH1D("h1","h1",nbins,0,1)

We could discuss the support of them in un-named macro for some backward compatibility issues, but in named macro we don't need this feature.
I see this as un urgent issue in order to have ROOT 6 usable for analysis.

Lorenzo


Generated at Tue Sep 24 10:47:07 CEST 2019 using Jira 7.13.1#713001-sha1:5e06076c2d215a6f699b7e5c90ab2fae7ba5a1ce.