"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dmd/hdrgen.d" between
dmd-2.093.0.tar.gz and dmd-2.093.1.tar.gz

About: DMD (Digital Mars D) is the D reference compiler. D is an object-oriented, imperative, multi-paradigm system programming language.

hdrgen.d  (dmd-2.093.0):hdrgen.d  (dmd-2.093.1)
skipping to change at line 2278 skipping to change at line 2278
{ {
// CommaExp is generated by the compiler so it shouldn't // CommaExp is generated by the compiler so it shouldn't
// appear in error messages or header files. // appear in error messages or header files.
// For now, this treats the case where the compiler // For now, this treats the case where the compiler
// generates CommaExp for temporaries by calling // generates CommaExp for temporaries by calling
// the `sideeffect.copyToTemp` function. // the `sideeffect.copyToTemp` function.
auto ve = e.e2.isVarExp(); auto ve = e.e2.isVarExp();
// not a CommaExp introduced for temporaries, go on // not a CommaExp introduced for temporaries, go on
// the old path // the old path
if (!ve || !ve.var.storage_class & STC.temp) if (!ve || !(ve.var.storage_class & STC.temp))
{ {
visit(cast(BinExp)e); visit(cast(BinExp)e);
return; return;
} }
// CommaExp that contain temporaries inserted via // CommaExp that contain temporaries inserted via
// `copyToTemp` are usually of the form // `copyToTemp` are usually of the form
// ((T __temp = exp), __tmp). // ((T __temp = exp), __tmp).
// Asserts are here to easily spot // Asserts are here to easily spot
// missing cases where CommaExp // missing cases where CommaExp
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)