Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Turned notetip tags into sidebars, which Pod::PseudoPod::LaTeX *does*…
… know how

to handle.
  • Loading branch information
chromatic committed Nov 18, 2009
1 parent 43869dd commit af0075b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/multi-dispatch.pod
Expand Up @@ -159,12 +159,12 @@ C<where> clause executes. Any Perl 6 compiler is free to optimize away type
checks it knows will succeed. In the current Rakudo implementation, the second
line with C<say> will print a higher number than the first.

=begin notetip
=begin sidebar

You I<can> do this, but you should avoid it in anything other than example
code. Relying on the side effects of type checks produces unreliable code.

=end notetip
=end sidebar

=head1 Narrowness

Expand Down Expand Up @@ -451,13 +451,13 @@ which prevents accidental overriding of built-insN<One of the very rare
exceptions is the smart match operator C<< infix:<~~> >> which is not easily
overloadable. Instead it redispatches to overloadable multi methods.>>.

=begin notetip
=begin sidebar

To hide all candidates of a multi and replace them by another sub, you can
declare it as C<only sub YourSub>, though at the time of writing, no compiler
supports this.

=end notetip
=end sidebar

=head1 Multi Methods

Expand Down
4 changes: 2 additions & 2 deletions src/regexes.pod
Expand Up @@ -738,13 +738,13 @@ position (C<$m.orig.substr(0, $m.from)>), splitting it by newlines and
counting the elements. The column is determined by searching backwards from
the match position, and calculating the difference to the match position.

=begin notetip
=begin sidebar

The C<rindex> method searches a string for another substring, starting at the
end of the string, moving forward until the search string is found. It returns
the position of search string.

=end notetip
=end sidebar

Using a match object as an array yields access to the positional captures,
using it as a hash reveals the named captures - which is what C<< $<dup> >>
Expand Down

0 comments on commit af0075b

Please sign in to comment.