develooper Front page | perl.perl6.language | Postings from June 2011

[perl6/specs] 669e0d: .Str -> .gist and .Bool -> .truth as appropriate

From:
noreply
Date:
June 18, 2011 12:18
Subject:
[perl6/specs] 669e0d: .Str -> .gist and .Bool -> .truth as appropriate
Message ID:
20110618191845.EAC7442875@smtp1.rs.github.com
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs

  Commit: 669e0ddc867a4e91822ce315aadd5c9d4a011485
      https://github.com/perl6/specs/commit/669e0ddc867a4e91822ce315aadd5c9d4a011485
  Author: Larry Wall <larry@wall.org>
  Date:   2011-06-18 (Sat, 18 Jun 2011)

  Changed paths:
    M S02-bits.pod
  M S03-operators.pod
  M S04-control.pod
  M S12-objects.pod
  M S32-setting-library/Basics.pod

  Log Message:
  -----------
  .Str -> .gist and .Bool -> .truth as appropriate

.Str and .Bool are now just the normal types.  The primitives used by
'say' and conditionals are now separate methods.  So .gist (and gist())
now do the forced-dwimmy human-readable stringification used by 'say',
and .truth is the primitive that returns a 0 or 1 to be used internally
by conditionals like 'if' and 'while'.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About