On Fri, Mar 17, 2023 at 11:11 PM rir wrote:
>
> Deprecating 'undefine' is just making something easy more difficult.
I see a problem with `undefine`:
```
my @bar;
say @bar.defined, @bar.DEFINITE; # TrueTrue
undefine @bar;
say @bar.defined, @bar.DEFINITE; # TrueTrue
```
I think a warning about
Marton: apologies for badly characterizing your post. I particularly
wanted specify the breakage you mentioned for any beginners passing by;
got delayed and forgot about some of your post.
I just mentioned the basic dual nature of Nil. There is a lot of
complexity around 'Nil' and around
Marton, I am not sure of your meaning. I took the warning message as:
For Scalars assign a Nil, for Arrays/Hashes/Etc. use Empty or ().
Because you might be read as suggesting "@ary = Nil should undefine @ary";
I will point out that will conflict with:
@a = Nil;
which is defined to
On 2023. 03. 14. 4:42, rir wrote:
undefine seen at:
, line 1
Will be removed with release v6.e!
Please use another way: assign a Nil; for Arrays/Hashes, assign Empty or
() instead.
Will that deprecation require a conditional and two assignments
for mixed data?
[$a, @a,
undefine seen at:
, line 1
Will be removed with release v6.e!
Please use another way: assign a Nil; for Arrays/Hashes, assign Empty or ()
instead.
Will that deprecation require a conditional and two assignments
for mixed data?
[$a, @a, $b, %c, $c, ].map: { .};
[$a, @a, $b,
Team -
I'm going to cancel the call scheduled for this Saturday - we've had
great success in the past month coordinating via email (last resort),
and irc and github (preferred). We've made a lot of progress, got the
site live, closed/transferred probably 50+ tickets, setup milestones
on raku/doc
"The rarest of gifts in men, that on the one hand they should have
clear, firm ideas of their own, and, on the other, that they should
be able to accomodate themselves to the ideas of men differing from
them and give them their due ..."
-- Fritz Brupbacher on James Guillaume, from "No Gods, No
On Tue, Feb 28, 2023 at 1:12 AM ToddAndMargo via perl6-users
wrote:
http://raku.docs.org
At first glance, this looks like a treasure trove.
I did not see anything about GUI programming,
but I did not look that close.
On 2/28/23 16:32, Will Coleda wrote:
> Sorry, there is no GUI
Sorry, there is no GUI programming that's part of the core; the docs
site is for the language spec and any core modules.
On Tue, Feb 28, 2023 at 1:12 AM ToddAndMargo via perl6-users
wrote:
>
>
> > http://raku.docs.org
> At first glance, this looks like a treasure trove.
>
> I did not see
http://raku.docs.org
At first glance, this looks like a treasure trove.
I did not see anything about GUI programming,
but I did not look that close.
Really liking the look of the site and responsiveness of the search bar-
first impression
-y
On Mon, Feb 27, 2023 at 10:54 AM Will Coleda wrote:
> Embarrassing!
>
> Thanks for catching that, thankful she got it right in the weekly!
>
>
> On Mon, Feb 27, 2023 at 8:51 AM Marcel Timmerman
Embarrassing!
Thanks for catching that, thankful she got it right in the weekly!
On Mon, Feb 27, 2023 at 8:51 AM Marcel Timmerman wrote:
>
> On 27-02-2023 01:08, Will Coleda wrote:
> > Since I know not everyone is on IRC:
> >
> > The updated raku.docs.org site is now live! Big thanks to
On 27-02-2023 01:08, Will Coleda wrote:
Since I know not everyone is on IRC:
The updated raku.docs.org site is now live! Big thanks to everyone who
helped make this happen!
If you find any issues please let me know at
https://github.com/raku/doc/issues - content
Since I know not everyone is on IRC:
The updated raku.docs.org site is now live! Big thanks to everyone who
helped make this happen!
If you find any issues please let me know at
https://github.com/raku/doc/issues - content
https://github.com/raku/doc-website/issues - site, search, styling,
"We live surrounded by a chaos of undifferentiated factoids
and half-formed allusions, and in the absence of convincing
structural links, we rely on, search for, or imagine flashes,
intuitions, hovering conceptual affinities, and hyperbolic
recurrences that can be explained only by
Team -
I missed the call! My back has been troubling me the last day after
traveling for business this week and I spent the day unplugged and half
asleep. I’ll do a write up of what I’ve been working on recently and post
it on the wiki.
Thanks to everyone who has been working on getting us to
Samuel Taylor Coleridge, "The Destiny of Nations" (1817):
"But some there are who deem themselves most free
When they within this gross and visible sphere
Chain down the winged thought, scoffing ascent,
Proud in their meanness; and themselves they cheat
With noisy emptiness of
Hey, you thought right! We were just doing a little testing (or at least
offered to do) so that functionality concerns can be checked.
By the way, I brought up the example of the Rakudo classes were Jitsi
kind of failed us and the second occasion was moved to Zoom. It could be
that something
I thought it was for 2nd Saturday, which is the 11-th
On 04/02/2023 23:13, Ralph Mellor wrote:
That's super short notice but if you mean EST, so 5pm UK time,
it would work for me.
On Fri, Feb 3, 2023 at 7:07 PM Will Coleda wrote:
I can do a test tomorrow at noon if there's interest.
On Fri,
D'oh. Time for sleep.
Hopefully see or hear y'all next Sat.
On Sat, Feb 4, 2023 at 11:21 PM Will Coleda wrote:
>
> Yes, Eastern- but the time had already passed, sorry.
>
> On Sat, Feb 4, 2023 at 18:13 Ralph Mellor wrote:
>>
>> That's super short notice but if you mean EST, so 5pm UK time,
>>
Yes, Eastern- but the time had already passed, sorry.
On Sat, Feb 4, 2023 at 18:13 Ralph Mellor wrote:
> That's super short notice but if you mean EST, so 5pm UK time,
> it would work for me.
>
> On Fri, Feb 3, 2023 at 7:07 PM Will Coleda wrote:
> >
> > I can do a test tomorrow at noon if
That's super short notice but if you mean EST, so 5pm UK time,
it would work for me.
On Fri, Feb 3, 2023 at 7:07 PM Will Coleda wrote:
>
> I can do a test tomorrow at noon if there's interest.
>
> On Fri, Feb 3, 2023 at 10:27 AM Parrot Raiser <1parr...@gmail.com> wrote:
> >
> > I think I had
Ok,we joined at noon eastern but only two of us were there.
We'll see folks next week!
On Fri, Feb 3, 2023 at 2:06 PM Will Coleda wrote:
>
> I can do a test tomorrow at noon if there's interest.
>
> On Fri, Feb 3, 2023 at 10:27 AM Parrot Raiser <1parr...@gmail.com> wrote:
> >
> > I think I had
I can do a test tomorrow at noon if there's interest.
On Fri, Feb 3, 2023 at 10:27 AM Parrot Raiser <1parr...@gmail.com> wrote:
>
> I think I had problems finding the audio options on Jitsi, and wasted
> a couple of meetings doing so. I'd suggest a "test" setup meeting,
> where the whole agenda
> On 2 Feb 2023, at 21:11, Ralph Mellor wrote:
> My internet is flakey when humidity is around 80%+ and the weather
> forecast suggests it may be but with luck I'll be "there" 5pm UK time
> (noon EST, 9am US west coast time) Saturday Feb 11.
If you switch off your camera, you will reduce the
On Thu, Feb 2, 2023 at 6:10 AM Bruce Gray wrote:
> > On Feb 1, 2023, at 6:00 PM, Elizabeth Mattijsen wrote:
> >> On 2 Feb 2023, at 00:53, Ralph Mellor wrote:
> >> It required an international phone call.
> > ??? I've never had to make *any* phone call to be able to use Jitsi.
> To clarify,
> On Feb 1, 2023, at 6:00 PM, Elizabeth Mattijsen wrote:
>
>> On 2 Feb 2023, at 00:53, Ralph Mellor wrote:
>> I looked at Jitsi when vrurg suggested it for their Core class.
>> It required an international phone call.
>
> ??? I've never had to make *any* phone call to be able to use Jitsi.
> On 2 Feb 2023, at 00:53, Ralph Mellor wrote:
> I looked at Jitsi when vrurg suggested it for their Core class.
> It required an international phone call.
??? I've never had to make *any* phone call to be able to use Jitsi. And the
RSC uses it every 2 weeks or so.
Liz
On Tue, Jan 24, 2023 at 9:50 PM Polgár Márton
wrote:
>
> Since there is a public Jitsi link, I don't think this would get cancelled
> because of personal problems. This is my "unofficial opinion" but I
> think whether the proposed dates (noon Eastern time, second
> Saturday of February, March an
lines.contains... is really short for: lines.Str.contains...
Do you then understand what's going on?
> On 28 Jan 2023, at 21:41, William Michels via perl6-users
> wrote:
>
> Some more examples:
>
> ~$ raku -e 'put "1\n2\n3";' | raku -e 'lines.contains(/ \h /).put;'
> True
> ~$ raku -e 'put
Some more examples:
~$ raku -e 'put "1\n2\n3";' | raku -e 'lines.contains(/ \h /).put;'
True
~$ raku -e 'put "1\02\03";' | raku -e 'lines.contains(/ \h /).put;'
False
~$ raku -e 'put "1\02\03";' | raku -e 'lines.contains(/ 12 /).put;'
False
~$ raku -e 'put "1\02\03";' | raku -e 'lines.contains(/
George Sand to Gustave Flaubert, November 29th, 1866:
"I have never ceased to wonder at the way you
torment yourself over your writing. Is it
just fastidiousness on your part? There is so
little to show for it... As to style, I
certainly do not worry myself, as you do, over
Thanks Sean.
Made some progress. I like this result better:
~$ raku -e 'put "1\n2\n3";' | raku -e 'lines.map(*.contains(/ \h /)).put;'
False False False
Thx, Bill.
On Thu, Jan 26, 2023 at 12:12 PM Sean McAfee wrote:
> On Thu, Jan 26, 2023 at 12:05 PM William Michels via perl6-users <
>
On Thu, Jan 26, 2023 at 12:05 PM William Michels via perl6-users <
perl6-users@perl.org> wrote:
> ~$ raku -e 'put "1\n2\n3";' | raku -e 'put lines.contains(/ \h /) ?? True
> !! False;'
> True
>
lines() returns a Seq. The contains method for a Seq coerces its argument
to a Str and calls contains
Hi, I'm seeing an issue where I try to write parallel code between `slurp`
and `lines`, expecting that when I feed each one-liner a string with
vertical whitespace (but not horizontal whitespace), the two methods will
be differentiated--since lines autochomps by default.
~$ raku -e 'put
Hi,
since the broader topic of Raku documentation came up on a SF Raku Study
Group meeting - and there have been various important news since - it
seems fitting to announce the planned schedule for the next couple of
documentation meetups, as it became publicly available at
"Hermes the messenger helps us glimpse the powerful archetypal
connections between magic, tricks, and technology. But the god
does not bloom into a genuine Promethean technomage until he
heads south, across the wine dark sea, to Egypt. Here, in the
centuries before the birth of Jesus, the
There are little known operators `andthen`, `orelse`, `notandthen` (I always
forget about the latter one too). What you are looking for would be:
given $s { m/ $=\w+ / andthen ..say }
Or, if you want a named variable:
given ("aaa") { (my $m = m/$=\w+/) andthen $m..say }
Best regards,
Vadim
I like statement modifiers, though not so much using side-effect variables
set by a postfix modifier, I'd like to see the side effect before seeing
the variable it sets. Something like
/ .+ / && put "The root of $_ is $/.";
though the discussion is about not setting $/ in the caller's context
A side effect is a side effect, it's something we cannot generally predict and
must not rely upon. Besides, that effect is caused by a regex which is a
separate entity on its own.
The primary point is that your sequence objects gets `.sink` method invoked on
it because the object itself is,
RESENDING: The code examples below should read `` in all
cases, not ``, although either works (erroneously?).
---
Interested in answering the question:
WHICH CODE EXAMPLE IS THE PRETTIEST?
Vote for your favorite (or post your own):
[#] > #REPL (line numbers altered to
Interested in answering the question:
WHICH CODE EXAMPLE IS THE PRETTIEST?
Vote for your favorite (or post your own):
[#] > #REPL (line numbers altered to differentiate)
Nil
[0] > $_ = 'gracefully'
gracefully
[1a] > put "The root of $_ is $/." if / .+ /;
The root of gracefully is graceful.
On Fri, Dec 30, 2022 at 4:12 PM The Sidhekin wrote:
> On Fri, Dec 30, 2022 at 8:51 PM Vadim Belman wrote:
>
>> It is not "untrue". The sequence you produced goes nowhere. Thus the sink
>> context.
>>
>
> "Sink context" is true.
>
> "Useless use" is debatable, at least.
>
It's not useless
On Fri, Dec 30, 2022 at 8:51 PM Vadim Belman wrote:
> It is not "untrue". The sequence you produced goes nowhere. Thus the sink
> context.
>
"Sink context" is true.
"Useless use" is debatable, at least.
Eirik
It is not "untrue". The sequence you produced goes nowhere. Thus the sink
context.
Best regards,
Vadim Belman
> On Dec 30, 2022, at 11:08 AM, Sean McAfee wrote:
>
> Ah, got it, thanks.
>
> It's mildly vexing, but the kind of side-effecty coding I described isn't a
> great idea in general.
Ah, got it, thanks.
It's mildly vexing, but the kind of side-effecty coding I described isn't a
great idea in general. I only stumbled across the phenomenon while code
golfing.
As a side note, code like this:
sub f { 1 ... * ~~ /9/; $/ }
...produces an untrue warning "Useless use of ... in
I guessed this answer. :) It makes it extra typing and some linenoise. So, I
wouldn't be really happy about it.
Use of `with` would be less cumbersome, actually. So `with $s ~~ /.../ {
. }`. Or `$s ~~ /.../ andthen .`. The "extra typing issue" is not
gone in this case, but the code clarity
if $s ~~ /$=[\w+]/ -> $/ { say $ }
> On 30 Dec 2022, at 03:54, Vadim Belman wrote:
>
> Optimizations, yes... But then, how could we not use code like `if $s ~~
> /$=[\w+]/ { say $ }`?
>
> Speaking of the subject itself, I don't remember how sequences are actually
> implemented in details,
Optimizations, yes... But then, how could we not use code like `if $s ~~
/$=[\w+]/ { say $ }`?
Speaking of the subject itself, I don't remember how sequences are actually
implemented in details, but most likely the regex is processed inside the
sequence iterator which owns the $/ used by the
Dear rakoons,
Since I have a Zoom meeting allocated for the class, the previously announced
schedule for the second session remains the same: Jan 7, 2022. A bit more
details can be found in a reddit post here:
https://www.reddit.com/r/rakulang/comments/zxsmvy/rakudo_coredev_class_session_2
Yes, for that code it would have to.
But that code pattern is really from Perl, and predates `with`.
$ raku -e 'say .Str with 9 ~~ /9/'
9
And I think that is what we should be teaching people to use, rather than
depend on the magic lexical $/.
Liz
> On 28 Dec 2022, at 21:37, William Michels
Doesn't it have to? At least for the following case?
[0] > #REPL
Nil
[0] > say $/.Str if 9 ~~ /9/;
9
Best regards. --B
On Wed, Dec 28, 2022, 09:49 Elizabeth Mattijsen wrote:
> That's because it at one time was decided that smart-match would set $/ in
> the caller's scope. Which is a pain for
That's because it at one time was decided that smart-match would set $/ in the
caller's scope. Which is a pain for implementation and optimizations. I would
be very much in favour of getting rid of that "feature", fwiw.
> On 28 Dec 2022, at 18:45, Sean McAfee wrote:
>
> But if a sequence
But if a sequence has its own $/, why does * ~~ /9/ set $/?
Actually it's not just sequences, as a little more experimentation showed:
[0] > first /9/, ^Inf
9
[1] > $/
Nil
[2] > grep /9/, ^10
(9)
[3] > $/
Nil
The * ~~ "trick" sets $/ in these cases too.
On Wed, Dec 28, 2022 at 12:01 PM
This isn't specific to the REPL:
$ raku -e 'say 1 ... /9/; say $/'
(1 2 3 4 5 6 7 8 9)
Nil
I can only assume that the sequence has its own scope for $/, and thus isn't
visible outside of it.
Liz
> On 28 Dec 2022, at 16:47, Sean McAfee wrote:
>
> In a fresh 2022.12 Raku REPL, when the
In a fresh 2022.12 Raku REPL, when the endpoint of a sequence is a Regex,
the $/ variable seems not to be set:
[0] > 1 ... /9/
(1 2 3 4 5 6 7 8 9)
[1] > $/
Nil
If I match more explicitly using a WhateverCode, it works:
[2] > 1 ... * ~~ /9/
(1 2 3 4 5 6 7 8 9)
[3] > $/
「9」
Is this the intended
"Looking up at the purple panorama
of the galaxy highway,
a shooting star pierces my heart"
-- "Macross 7" (1994), "Seventh Moon" by Fire Bomber,
The Raku Study Group.
January 1st, 2023 1pm in California, 9pm in the UK
An informal meeting: drop by when you can, show us what you've got,
"Is it any wonder if we at last grow distrustful, lose
patience, and turn impatiently away? That this Sphinx
teaches us at last to ask questions ourselves?"
-- Nietzsche, "Beyond Good and Evil", trans. Helen Zimmern
The Raku Study Group
December 18, 2022 1pm in California, 9pm in the UK
An
On 12/7/22 09:06, Gianni Ceccarelli wrote:
On Wed, 7 Dec 2022 08:58:19 -0800
ToddAndMargo via perl6-users wrote:
When I am in a module (pm6), is there one of those
fancy system variables that will tell me the
name of calling (pl6) program?
On Wed, 7 Dec 2022 08:58:19 -0800
ToddAndMargo via perl6-users wrote:
> When I am in a module (pm6), is there one of those
> fancy system variables that will tell me the
> name of calling (pl6) program?
https://docs.raku.org/language/variables#index-entry-$*PROGRAM
--
Dakkar -
Hi All,
When I am in a module (pm6), is there one of those
fancy system variables that will tell me the
name of calling (pl6) program?
Many thanks,
-T
On 12/7/22 02:02, ToddAndMargo via perl6-users wrote:
On my sub declarations, I like to use "export"
I had been doing a lot of module coding.
I should have said "returns", not "export[s]"
--
~~
Computers are like air conditioners.
They malfunction when
On 12/7/22 02:02, ToddAndMargo via perl6-users wrote:
use "export"
"exports", I forgot the "s"
--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~
On 12/5/22 11:19, Ralph Mellor wrote:
I forgot to mention one other shortcut that is always available
if you do have to use `.new` (which is the case for most types).
You can write:
```
my $foo = 42;
```
The `42` on the RHS of the `=` is the shortest way to create
an integer value corresponding
Hi All,
On my sub declarations, I like to use "export"
sub abc() returns Str {...}
becasue it makes eh sub easier to figure out at
a glance when I go to maintain it.
Two exports I have not figured out are
1) an array,
2) an object created from a custom class.
returns @
gets
On Tue, Dec 6, 2022 at 11:55 PM ToddAndMargo via perl6-users
wrote:
>
> > Oh, I figured out the "*ppX" double pointer.
> "Pointer[Pointer]".
Ironically I wrote that in a comment on your SO question before
any other comments or the answers were written. But it was just
a wild guess. I don't
On 12/6/22 15:40, ToddAndMargo via perl6-users wrote:
On 12/5/22 16:35, Ralph Mellor wrote:
On Mon, Dec 5, 2022 at 10:20 PM ToddAndMargo via perl6-users
wrote:
use NativeCall;
my Pointer $foo .= new: 42;
say $foo; # NativeCall::Types::Pointer<0x2a>
print $foo; #
On 12/5/22 16:35, Ralph Mellor wrote:
On Mon, Dec 5, 2022 at 10:20 PM ToddAndMargo via perl6-users
wrote:
use NativeCall;
my Pointer $foo .= new: 42;
say $foo; # NativeCall::Types::Pointer<0x2a>
print $foo; # NativeCall::Types::Pointer<5895604297984>
`say` concatenates the `.gist`s
On 12/6/22 07:31, ToddAndMargo via perl6-users wrote:
On 12/6/22 01:44, ToddAndMargo via perl6-users wrote:
Hi All,
Windows Pro Chromebook Edition 22H2 (W11)
raku -v Welcome to RakudoΓäó v2022.07.
When ever I run the following, it opens
a Notepad with the text of the calling
raku program.
On 12/6/22 01:44, ToddAndMargo via perl6-users wrote:
Hi All,
Windows Pro Chromebook Edition 22H2 (W11)
raku -v Welcome to RakudoΓäó v2022.07.
When ever I run the following, it opens
a Notepad with the text of the calling
raku program.
raku -e "use lib '.'; use NativeWinUtils :RunCmd; say
On 12/6/22 03:31, ToddAndMargo via perl6-users wrote:
This is obviously not a raku issue, but a Windows issue.
I think I misspoke. I do believe qqx is trying
to run the sub from the module.
I will put together a few tests in a couple of
days to see if I can get it to repeat, then I
will tag
On 12/6/22 03:31, ToddAndMargo via perl6-users wrote:
On 12/6/22 03:13, ToddAndMargo via perl6-users wrote:
On 12/6/22 02:40, Ralph Mellor wrote:
Please confirm that:
* Entering `ls` at the command line prompt does what it says
on the tin, it does not open notepad.
* A Raku program that
On 12/6/22 03:13, ToddAndMargo via perl6-users wrote:
On 12/6/22 02:40, Ralph Mellor wrote:
Please confirm that:
* Entering `ls` at the command line prompt does what it says
on the tin, it does not open notepad.
* A Raku program that consists of the single line `qqx 'ls'` does
what it
On 12/6/22 02:40, Ralph Mellor wrote:
Please confirm that:
* Entering `ls` at the command line prompt does what it says
on the tin, it does not open notepad.
* A Raku program that consists of the single line `qqx 'ls'` does
what it says on the tin, and does not open notepad.
If those
Please confirm that:
* Entering `ls` at the command line prompt does what it says
on the tin, it does not open notepad.
* A Raku program that consists of the single line `qqx 'ls'` does
what it says on the tin, and does not open notepad.
If those are true, then this code:
```
use lib '.';
Hi All,
Windows Pro Chromebook Edition 22H2 (W11)
raku -v Welcome to RakudoΓäó v2022.07.
When ever I run the following, it opens
a Notepad with the text of the calling
raku program.
raku -e "use lib '.'; use NativeWinUtils :RunCmd; say RunCmd(Q[ls]);"
This is RunCmd
sub RunCmd( Str
On Mon, Dec 5, 2022 at 10:20 PM ToddAndMargo via perl6-users
wrote:
>
> > use NativeCall;
> > my Pointer $foo .= new: 42;
> > say $foo; # NativeCall::Types::Pointer<0x2a>
> > print $foo; # NativeCall::Types::Pointer<5895604297984>
`say` concatenates the `.gist`s of each of its arguments.
On 12/5/22 09:25, Ralph Mellor wrote:
On Sat, Dec 3, 2022 at 11:44 AM ToddAndMargo via perl6-users
wrote:
I am confused
I think the following is a golf of your confusion:
```
use NativeCall;
my Pointer $foo .= new: 42;
say $foo; # NativeCall::Types::Pointer<0x2a>
print $foo; #
On 12/5/22 09:17, Ralph Mellor wrote:
On Mon, Dec 5, 2022 at 9:45 AM ToddAndMargo via perl6-users
wrote:
Answer 3:
https://stackoverflow.com/questions/74665162/how-do-i-assign-the-value-in-carray-that-contains-a-memory-address-to-a-poi#74674303
Håkon Hægland is astonishing good at this
I forgot to mention one other shortcut that is always available
if you do have to use `.new` (which is the case for most types).
You can write:
```
my $foo = 42;
```
The `42` on the RHS of the `=` is the shortest way to create
an integer value corresponding to `42`.
But you could also write:
```
On Thu, Dec 1, 2022 at 4:28 AM ToddAndMargo via perl6-users
wrote:
>
> Why can I get away with `my Str $x = "";`
>
> But I have to use .new here (an other places too) `my $ppSession =
> NativeCall::Types::Pointer.new();`
There are ways to write the value of some data types with minimum fuss.
On Sat, Dec 3, 2022 at 11:44 AM ToddAndMargo via perl6-users
wrote:
>
> I am confused
I think the following is a golf of your confusion:
```
use NativeCall;
my Pointer $foo .= new: 42;
say $foo; # NativeCall::Types::Pointer<0x2a>
print $foo; # NativeCall::Types::Pointer<5895604297984>
```
I
On Mon, Dec 5, 2022 at 9:45 AM ToddAndMargo via perl6-users
wrote:
>
> Answer 3:
> https://stackoverflow.com/questions/74665162/how-do-i-assign-the-value-in-carray-that-contains-a-memory-address-to-a-poi#74674303
>
> Håkon Hægland is astonishing good at this stuff.
Indeed he is!
If one of his
On 11/14/22 12:54, ToddAndMargo via perl6-users wrote:
Hi All,
Windows 11 22H2
Is there a way to find session ID of the
current running program? Any predefined
system variable for that?
Many thanks,
-T
Answer 3:
Hi All,
NativeCall question:
I am confused about how to assign an address
to a pointer
[1] > use lib '.'; use NativeCall; use NativeConstants
Nil
[2] > my $x=0xFE45DDCC;
4265991628
[3] > my Pointer $Ptr2Ptr = NativeCall::Types::Pointer[BYTES].new($x);
Hi All,
Windows 11 pro 22H2
The following is a test example of the use of
pointers for calling Windows DLL's and
for copying data out of structures when given
a pointer to the structure.
Before you tell me there is an easier way to
get the computer name out of "GetComputerNameA,"
this is to
On 11/30/22 12:53, ToddAndMargo via perl6-users wrote:
Let me ask this question a little simpler:
To answer my own questions, which I figured out
the hard way.
1) how to I tell NativeCall I only want the
C pointer back, not what it points to?
By declaring it as a pointer and creating it
Hi All,
Why can I get away with
my Str $x = "";
But I have to use .new here (an other places too)
my $ppSession = NativeCall::Types::Pointer.new();
Is there some rule I can follow that let me know
when I have to use .new and when I do not?
(I am getting tired of figuring it out the
Sounds good to me.
Sent from Yahoo Mail for iPhone
On Monday, November 28, 2022, 9:30 PM, Joseph Brenner wrote:
On the next few Sundays, I've got some schedule conflicts, so I've got
to skip holding the Raku Study Group when we usually would on December
4th.
Instead the next meeting will be
Let me ask this question a little simpler:
1) how to I tell NativeCall I only want the
C pointer back, not what it points to?
2) how do I tell NativeCall I am sending it
a C pointer?
Many thanks,
-T
Hi All,
In the following:
use NativeCall;
constant BYTE := uint8;
constant LPDWORD := uint64;# long pointer to a DWORD
constant LPSTR= CArray[BYTE]; # long pointer to a string
constant DWORD:= uint32;
constant HANDLE = Pointer[void];
sub WTSOpenServerA(
#`{
On 29-11-2022 15:08, Elizabeth Mattijsen wrote:
Perhaps it would make sense to export these to a separate
Gnome::Constants module?
Wel, I have done that, sort of. The file is generated in the Build phase
of the installation of Gnome::N where I run a C program outputting the
sizes from several
Perhaps it would make sense to export these to a separate Gnome::Constants
module?
> On 29 Nov 2022, at 15:05, Marcel Timmerman wrote:
>
> On 29-11-2022 10:13, Francis Grizzly Smit wrote:
>
> Hi Francis,
>>
>> Personally I never use \name are I hate how it looks, and so far I have
>> never
On 29-11-2022 10:13, Francis Grizzly Smit wrote:
Hi Francis,
Personally I never use \name are I hate how it looks, and so far I
have never needed it, so unless I can find something it can do that I
cannot do any other way, I'll keep on not using it
To show an example where I could use it I
On 11/29/22 01:13, Francis Grizzly Smit wrote:
Personally I never use \name are I hate how it looks, and so far I have
never needed it, so unless I can find something it can do that I cannot
do any other way, I'll keep on not using it
I have seen it use and it was sneaky as all heck.
Very
On 29/11/22 13:21, ToddAndMargo via perl6-users wrote:
On 11/28/22 17:40, ToddAndMargo wrote:
Sigilless variable
https://docs.raku.org/language/glossary#Sigilless_variable
Sigilless variables are actually aliases to the
value it is assigned to them, since they are
not
And you, and you, yes, you too. There are still some slots available. You
want to talk about your module, your experience, a little tutorial,
whatever, request a slot here
https://github.com/Raku/advent/blob/master/raku-advent-2022/authors.md (and
also send me via email a way to contact you)
On 11/25/22 19:21, ToddAndMargo via perl6-users wrote:
Hi All,
I am confused!
sub blob-from-pointer(Pointer:D \ptr, Int :$elems!, Blob:U :$type = Buf)
is export {
What is `Pointer:D \ptr`?
Why the `\`?
What is `:$elems!`?
Why the `:`?
Why the `!`?
What is `Blob:U :$type = Buf`
On 11/27/22 19:13, Clifton Wood wrote:
ToddAndMargo: Why are you referencing NativeHelpers::Blob when I've
linked to the code you need. The bug was in the code snippet I've sent.
NONE of my stuff is available via zef because CURI (and hence zef) have
problems with large scale code that I am
On the next few Sundays, I've got some schedule conflicts, so I've got
to skip holding the Raku Study Group when we usually would on December
4th.
Instead the next meeting will be on December 18th, and after that
we'll most likely do one on New Years Day itself, January 1st, 2023.
301 - 400 of 9475 matches
Mail list logo