Changeset 14504
- Timestamp:
- 10/24/06 17:24:59 (2 years ago)
- svk:copy_cache_prev:
- 21659
- Location:
- misc/pX/Common/Pugs-Emitter-Perl6-Perl5-2
- Files:
-
- 2 modified
-
HACKING (modified) (2 diffs)
-
lib/Pugs/Emitter/Perl6/Perl5/Scalar.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
misc/pX/Common/Pugs-Emitter-Perl6-Perl5-2/HACKING
r14503 r14504 194 194 <TimToady> this is one of the suprising results of forcing statement-begining { to start a bare block. 195 195 196 <fglock> is the type of "0 but True" something like ::(Int|Bool) ?197 198 <fglock> can multis dispatch on a constant? multi a(1){ "first" }; multi a(2){ "second" }; multi a { "other" };199 200 196 -- Questions 201 197 … … 206 202 my Str $b; 207 203 $a := $b; # error ??? 204 205 (1,2,3)[1] # ok - splice a List 206 (1,2,3)[1]=5 # error - List is read-only; doesn't coerce List into Array 207 [1,2,3][1]=5 # ok - Array is read-write 208 209 - is the type of "0 but True" something like ::(Int|Bool) ? 210 211 - can multis dispatch on a constant? multi a(1){ "first" }; multi a(2){ "second" }; multi a { "other" }; 212 -
misc/pX/Common/Pugs-Emitter-Perl6-Perl5-2/lib/Pugs/Emitter/Perl6/Perl5/Scalar.pm
r14501 r14504 166 166 Pugs::Runtime::Common::mangle_var( $_[0]->{name} ) 167 167 } 168 sub VAR { 169 Pugs::Runtime::Common::mangle_var( $_[0]->{name} ) 170 } 168 171 169 172 1;
