digitalmars.D.bugs - [Issue 245] New: Typo in Regexp article
- d-bugmail puremagic.com (28/28) Jul 07 2006 http://d.puremagic.com/issues/show_bug.cgi?id=245
- d-bugmail puremagic.com (9/9) Jul 07 2006 http://d.puremagic.com/issues/show_bug.cgi?id=245
http://d.puremagic.com/issues/show_bug.cgi?id=245 Summary: Typo in Regexp article Product: D Version: 0.158 Platform: PC OS/Version: All Status: NEW Severity: trivial Priority: P5 Component: www.digitalmars.com AssignedTo: bugzilla digitalmars.com ReportedBy: clugdbug yahoo.com.au "To check for a match of a string s with a regular expression in Ruby, use the ~= operator," should be "use the =~ operator". (Ruby isn't D!) And the example which says: sub(s, "[ar]", delegate char[] (RegExp m) { return toupper(m.match(0)); }, "g"); // result: StRAp A Rocket engine on A chicken. would be even more impressive with the new delegate syntax as: sub(s, "[ar]", (RegExp m) { return toupper(m.match(0)); }, "g"); // result: StRAp A Rocket engine on A chicken. Optional: mention that toupper() comes from std.string. --
Jul 07 2006
http://d.puremagic.com/issues/show_bug.cgi?id=245 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed. --
Jul 07 2006